fix(ci): report coverage only for unit tests

jest + puppeteer: https://circleci.com/gh/nuxt/nuxt.js/581
This commit is contained in:
Pooya Parsa 2018-03-19 19:27:36 +03:30
parent 190923e51a
commit 79d97b2be2
2 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
module.exports = {
testEnvironment: 'node',
coverageDirectory: './coverage/',
collectCoverage: true,
setupTestFrameworkScriptFile: './test/utils/setup'
}

View File

@ -43,7 +43,7 @@
"scripts": {
"test": "npm run build-fixtures && npm run test:unit",
"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",
"coverage": "codecov",
"lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",