Skip to content

Instantly share code, notes, and snippets.

Created Jan 9, 2018
What would you like to do?
Code coverage package.json
"scripts": {
"test": "npm run eslint && npm run coverage",
"coverage": "npm run clean && NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- test/ --recursive --exit",
"eslint": "eslint src/. test/. --config .eslintrc.json --fix",
"start": "node src/",
"clean": "shx rm -rf test/data/",
"mocha": "npm run clean && NODE_ENV=test mocha test/ --recursive --exit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment