Skip to content

Instantly share code, notes, and snippets.

@daffl
Created January 9, 2018 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daffl/8d34acc881040a800120d69c55c26c11 to your computer and use it in GitHub Desktop.
Save daffl/8d34acc881040a800120d69c55c26c11 to your computer and use it in GitHub Desktop.
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