chore: use nyc instead of istanbul

This commit is contained in:
Zongmin Lei
2020-06-08 14:46:12 +08:00
parent a8cbb0900b
commit b61c373d66
2 changed files with 6 additions and 3 deletions

4
.gitignore vendored
View File

@@ -17,4 +17,6 @@ npm-debug.log
benchmark/result*.html
coverage.html
coverage.html
.nyc_output
coverage

View File

@@ -20,8 +20,8 @@
"browserify": "^16.5.1",
"coveralls": "^3.1.0",
"debug": "^4.1.1",
"istanbul": "^0.4.3",
"mocha": "^6.2.3",
"nyc": "^15.1.0",
"uglify-js": "^3.9.4"
},
"files": [
@@ -35,7 +35,8 @@
},
"scripts": {
"test": "export DEBUG=xss:* && mocha -t 5000",
"test-cov": "export DEBUG=xss:* && istanbul cover _mocha --report lcovonly -- -t 5000 -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"test-cov": "nyc --reporter=lcov mocha --exit \"test/*.js\" && nyc report",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"build": "./bin/build",
"prepublish": "npm run test && npm run build"
},