mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
refactor: worker-pool uses default count and not collect coverage in appveyor
This commit is contained in:
parent
daf1c28dbf
commit
cff76965f6
@ -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"
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user