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
- run:
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:
root: ~/project
paths:
@ -65,7 +65,7 @@ jobs:
at: ~/project
- run:
name: Unit Test
command: yarn test:unit && yarn coverage
command: yarn test:unit -w=4 --coverage && yarn coverage
environment:
- NODE_ENV: "test"

View File

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

View File

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