refactor: worker-pool uses default count and not collect coverage in appveyor

This commit is contained in:
Clark Du 2018-07-24 11:37:56 +01:00 committed by Clark Du
parent daf1c28dbf
commit cff76965f6
3 changed files with 6 additions and 5 deletions

View File

@ -49,7 +49,7 @@ jobs:
at: ~/project at: ~/project
- run: - run:
name: Build Fixtures name: Build Fixtures
command: yarn build && yarn test:fixtures && yarn coverage command: yarn build && yarn test:fixtures -w=4 --coverage && yarn coverage
- persist_to_workspace: - persist_to_workspace:
root: ~/project root: ~/project
paths: paths:
@ -65,7 +65,7 @@ jobs:
at: ~/project at: ~/project
- run: - run:
name: Unit Test name: Unit Test
command: yarn test:unit && yarn coverage command: yarn test:unit -w=4 --coverage && yarn coverage
environment: environment:
- NODE_ENV: "test" - NODE_ENV: "test"

View File

@ -10,5 +10,6 @@ module.exports = {
moduleFileExtensions: ['js', 'mjs', 'json'], moduleFileExtensions: ['js', 'mjs', 'json'],
expand: true, expand: true,
forceExit: true, forceExit: true,
// https://github.com/facebook/jest/pull/6747 fix warning here
detectOpenHandles: true detectOpenHandles: true
} }

View File

@ -58,10 +58,10 @@
"prebuild": "yarn clean", "prebuild": "yarn clean",
"security": "nsp check || true", "security": "nsp check || true",
"test": "yarn test:fixtures && yarn test:unit", "test": "yarn test:fixtures && yarn test:unit",
"test:fixtures": "jest --maxWorkers=4 --coverage test/fixtures", "test:fixtures": "jest test/fixtures",
"test:e2e": "jest --maxWorkers=1 test/e2e", "test:e2e": "jest -i test/e2e",
"test:lint": "yarn lint && yarn security", "test:lint": "yarn lint && yarn security",
"test:unit": "jest --maxWorkers=4 --coverage test/unit" "test:unit": "jest test/unit"
}, },
"engines": { "engines": {
"node": ">=8.0.0", "node": ">=8.0.0",