Skip to content

Instantly share code, notes, and snippets.

@suru-dissanaike
Created May 20, 2020 15:18
Show Gist options
  • Save suru-dissanaike/0467e4e59004cefe3ddb9e8ee74304c6 to your computer and use it in GitHub Desktop.
Save suru-dissanaike/0467e4e59004cefe3ddb9e8ee74304c6 to your computer and use it in GitHub Desktop.
{
"scripts": {
"test": "jest --coverage",
"jshint": "jshint --exclude ./node_modules,./coverage .",
"jscpd": "jscpd --ignore \"**/*.min.js,**/*.map\" --format \"javascript\" --threshold 0 database.js index.js mqttConf.js"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{js,jsx}",
"!**/node_modules/**",
"!**/coverage/**"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
},
"reporters": [ "default", "jest-junit" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment