Add code coverage and coveralls support
This commit is contained in:
parent
d33e0fd6e4
commit
443399bd7a
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest --silent",
|
"test": "jest --silent",
|
||||||
|
"coverage": "cross-env NODE_ENV=test jest --silent --coverage --collectCoverageFrom=lib/**/*.js",
|
||||||
|
"coveralls": "yarn coverage && cat ./coverage/lcov.info | coveralls",
|
||||||
"lint": "cross-env NODE_ENV=test standard --verbose",
|
"lint": "cross-env NODE_ENV=test standard --verbose",
|
||||||
"lint:fix": "cross-env NODE_ENV=test standard --fix --verbose",
|
"lint:fix": "cross-env NODE_ENV=test standard --fix --verbose",
|
||||||
"docs": "esdoc",
|
"docs": "esdoc",
|
||||||
|
@ -65,6 +67,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"coveralls": "^3.0.2",
|
||||||
"cross-env": "^5.1.4",
|
"cross-env": "^5.1.4",
|
||||||
"esdoc": "^1.1.0",
|
"esdoc": "^1.1.0",
|
||||||
"esdoc-node": "^1.0.3",
|
"esdoc-node": "^1.0.3",
|
||||||
|
|
Loading…
Reference in a new issue