Skip to content

Commit

Permalink
Calculate test code coverage with Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
cheshire137 committed Feb 18, 2017
1 parent 1eca904 commit 54e30e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules/
src/public/bundle.js
src/public/bundle.js.map
.DS_Store
coverage/
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
"unit-test": "jest",
"style": "node_modules/xo/cli.js src/components/*.jsx src/models/*.js src/*.jsx src/*.js gulpfile.js test/models/*.js test/components/*.jsx test/helpers/*.js"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{js,jsx}",
"!**/node_modules/**",
"!src/public/bundle.js",
"!gulpfile.js",
"!coverage/**"
]
},
"xo": {
"esnext": true,
"globals": [
Expand Down

0 comments on commit 54e30e9

Please sign in to comment.