mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
refactor: test and coverage script
This commit is contained in:
parent
e8ed1e5809
commit
c12c5502ee
@ -42,13 +42,17 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build-fixtures": "node ./scripts/build-fixtures",
|
"build-fixtures": "node ./scripts/build-fixtures",
|
||||||
"test": "npm run lint && npm run build-fixtures && jest test/",
|
"test": "npm run lint && npm run build-fixtures && jest test/ --coverage",
|
||||||
"test:unit": "jest",
|
"test:unit": "jest",
|
||||||
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && 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/",
|
||||||
"precommit": "npm run lint",
|
"precommit": "npm run lint",
|
||||||
"postinstall": "opencollective postinstall || exit 0"
|
"postinstall": "opencollective postinstall || exit 0"
|
||||||
},
|
},
|
||||||
|
"jest": {
|
||||||
|
"coverageDirectory": "./coverage/",
|
||||||
|
"collectCoverage": true
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.0.0",
|
"node": ">=8.0.0",
|
||||||
"npm": ">=5.0.0"
|
"npm": ">=5.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user