adding test coverage

This commit is contained in:
Benjamin Boudreau 2018-05-29 22:11:02 -04:00
parent 112167c078
commit 0615960121
3 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,9 @@ jobs:
- run: - run:
name: dep install name: dep install
command: npm install command: npm install
- run:
name: install codecov
command: npm install -g codecov
- run: - run:
name: test name: test
command: npm test command: npm test && codecov

1
.gitignore vendored
View File

@ -1 +1,2 @@
node_modules node_modules
coverage

View File

@ -14,6 +14,8 @@
] ]
}, },
"jest": { "jest": {
"coverageDirectory": "./coverage/",
"collectCoverage": true,
"transform": { "transform": {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest", "^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.(css|scss)$": "<rootDir>/jest/cssTransform.js", "^.+\\.(css|scss)$": "<rootDir>/jest/cssTransform.js",