Last active
March 22, 2019 03:40
-
-
Save adam-edison/aa33b0452ed0f9c712a33935919bd033 to your computer and use it in GitHub Desktop.
useful package.json settings for testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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