Skip to content

Instantly share code, notes, and snippets.

@adam-edison
Last active March 22, 2019 03:40
Show Gist options
  • Save adam-edison/aa33b0452ed0f9c712a33935919bd033 to your computer and use it in GitHub Desktop.
Save adam-edison/aa33b0452ed0f9c712a33935919bd033 to your computer and use it in GitHub Desktop.
useful package.json settings for testing
{
"scripts": {
"test": "nyc mocha --recursive test",
"test-debug": "nodemon -L --ext js --inspect-brk=0.0.0.0:9229 --exec 'mocha -t 0 --recursive test'",
"test-watch": "nodemon -L --ext js --exec 'nyc --reporter=text-summary mocha --reporter min --recursive test'"
},
"nyc": {
"check-coverage": true,
"per-file": false,
"lines": 95,
"statements": 95,
"functions": 95,
"branches": 95,
"all": true,
"include": [
"**/*.js"
],
"exclude": [
"test/**/*.js"
],
"reporter": [
"html",
"text"
],
"report-dir": "./.coverage"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment