Tweak test and CI configs (#7866)

* Set `jest` verbose to false by default

* Correct `doc-debug.js` path

* Remove outdated ignore patterns

* Exclude Node.js 13 on macos
This commit is contained in:
fisker Cheung authored and GitHub committed 2020-03-26 17:02:43 +02:00
1 parent 302dbc3796
commit 412694e1c5
3 files changed
+12 -3

No files matched your search

+3
View File
@@ -24,6 +24,9 @@ jobs:
- os: "ubuntu-latest"
node: "12"
ENABLE_CODE_COVERAGE: true
exclude:
- os: "macos-latest"
node: "13"
env:
ENABLE_CODE_COVERAGE: ${{ matrix.ENABLE_CODE_COVERAGE }}
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
+6
View File
@@ -72,6 +72,9 @@ jobs:
- "13"
- "12"
- "10"
exclude:
- os: "macos-latest"
node: "13"
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [build]
@@ -110,6 +113,9 @@ jobs:
- "13"
- "12"
- "10"
exclude:
- os: "macos-latest"
node: "13"
env:
STANDALONE: true
name: Node.js ${{ matrix.node }} on ${{ matrix.os }} (standalone)
+3 -3
View File
@@ -1,4 +1,5 @@
"use strict";
const { isCI } = require("ci-info");
const ENABLE_CODE_COVERAGE = !!process.env.ENABLE_CODE_COVERAGE;
module.exports = {
@@ -8,12 +9,11 @@ module.exports = {
"jest-snapshot-serializer-ansi",
],
testRegex: "jsfmt\\.spec\\.js$|__tests__/.*\\.js$",
testPathIgnorePatterns: ["tests/new_react", "tests/more_react"],
collectCoverage: ENABLE_CODE_COVERAGE,
collectCoverageFrom: ["src/**/*.js", "index.js", "!<rootDir>/node_modules/"],
coveragePathIgnorePatterns: [
"<rootDir>/standalone.js",
"<rootDir>/src/doc/doc-debug.js",
"<rootDir>/src/document/doc-debug.js",
"<rootDir>/src/main/massage-ast.js",
],
coverageReporters: ["text", "lcov"],
@@ -33,5 +33,5 @@ module.exports = {
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
verbose: true,
verbose: isCI,
};