mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
refactor: extract common jest config
This commit is contained in:
parent
e814b34508
commit
364be8dc68
@ -7,5 +7,8 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
setupTestFrameworkScriptFile: './test/utils/setup',
|
setupTestFrameworkScriptFile: './test/utils/setup',
|
||||||
testPathIgnorePatterns: ['test/fixtures/.*/.*?/'],
|
testPathIgnorePatterns: ['test/fixtures/.*/.*?/'],
|
||||||
moduleFileExtensions: ['js', 'mjs', 'json']
|
moduleFileExtensions: ['js', 'mjs', 'json'],
|
||||||
|
expand: true,
|
||||||
|
forceExit: true,
|
||||||
|
detectOpenHandles: true
|
||||||
}
|
}
|
||||||
|
@ -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 --forceExit --detectOpenHandles --coverage -e test/fixtures",
|
"test:fixtures": "jest --maxWorkers=4 --coverage test/fixtures",
|
||||||
"test:e2e": "jest --maxWorkers=1 --forceExit --detectOpenHandles test/e2e",
|
"test:e2e": "jest --maxWorkers=1 test/e2e",
|
||||||
"test:lint": "yarn lint && yarn security",
|
"test:lint": "yarn lint && yarn security",
|
||||||
"test:unit": "jest --maxWorkers=4 --forceExit --detectOpenHandles --coverage -e test/unit"
|
"test:unit": "jest --maxWorkers=4 --coverage test/unit"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.0.0",
|
"node": ">=8.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user