Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
support test coverage, adjust lint rules for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aisapatino committed Feb 8, 2017
1 parent 4267fc0 commit f31c2fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
coverage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
npm-debug.log
coverage
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "index.js",
"scripts": {
"lint": "eslint .",
"test": "mocha --recursive ./test/**/*.spec.js"
"test": "mocha -c --recursive test/**/*.spec.js",
"check": "npm run lint && npm test",
"coverage": "istanbul cover --include-all-sources _mocha -- -c --recursive test/**/*.spec.js"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -47,6 +49,7 @@
"eslint-config-formidable": "^2.0.1",
"eslint-plugin-filenames": "^1.1.0",
"eslint-plugin-import": "^1.16.0",
"istanbul": "^0.4.5",
"mocha": "^3.1.1",
"sinon": "^1.17.6"
}
Expand Down
1 change: 1 addition & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"mocha":true
},
"rules": {
"max-nested-callbacks": [2, 5],
"no-unused-expressions": 0
}
}

0 comments on commit f31c2fb

Please sign in to comment.