mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
fix(ci): report coverage only for unit tests
jest + puppeteer: https://circleci.com/gh/nuxt/nuxt.js/581
This commit is contained in:
parent
190923e51a
commit
79d97b2be2
@ -1,6 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
testEnvironment: 'node',
|
testEnvironment: 'node',
|
||||||
coverageDirectory: './coverage/',
|
coverageDirectory: './coverage/',
|
||||||
collectCoverage: true,
|
|
||||||
setupTestFrameworkScriptFile: './test/utils/setup'
|
setupTestFrameworkScriptFile: './test/utils/setup'
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run build-fixtures && npm run test:unit",
|
"test": "npm run build-fixtures && npm run test:unit",
|
||||||
"build-fixtures": "node ./scripts/build-fixtures",
|
"build-fixtures": "node ./scripts/build-fixtures",
|
||||||
"test:unit": "jest --maxWorkers=4 test/unit",
|
"test:unit": "jest --maxWorkers=4 --coverage test/unit",
|
||||||
"test:e2e": "jest --maxWorkers=1 test/e2e",
|
"test:e2e": "jest --maxWorkers=1 test/e2e",
|
||||||
"coverage": "codecov",
|
"coverage": "codecov",
|
||||||
"lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",
|
"lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",
|
||||||
|
Loading…
Reference in New Issue
Block a user