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',
|
||||
testPathIgnorePatterns: ['test/fixtures/.*/.*?/'],
|
||||
moduleFileExtensions: ['js', 'mjs', 'json']
|
||||
moduleFileExtensions: ['js', 'mjs', 'json'],
|
||||
expand: true,
|
||||
forceExit: true,
|
||||
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 --forceExit --detectOpenHandles --coverage -e test/fixtures",
|
||||
"test:e2e": "jest --maxWorkers=1 --forceExit --detectOpenHandles test/e2e",
|
||||
"test:fixtures": "jest --maxWorkers=4 --coverage test/fixtures",
|
||||
"test:e2e": "jest --maxWorkers=1 test/e2e",
|
||||
"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": {
|
||||
"node": ">=8.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user