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