enable collectCoverage and codecov

This commit is contained in:
Pooya Parsa 2018-03-19 19:19:16 +03:30
parent 25a587544c
commit 34c1cad8cc
2 changed files with 6 additions and 5 deletions

View File

@ -62,7 +62,7 @@ jobs:
at: ~/project
- run:
name: Test
command: yarn test:unit
command: yarn test:unit && yarn coverage
environment:
- NODE_ENV: "test"
@ -73,7 +73,7 @@ jobs:
at: ~/project
- run:
name: Test (e2e)
command: yarn test:e2e
command: yarn test:e2e && yarn coverage
environment:
- NODE_ENV: "test"

View File

@ -1,5 +1,6 @@
module.exports = {
'testEnvironment': 'node',
'coverageDirectory': './coverage/',
'setupTestFrameworkScriptFile': './test/utils/setup'
testEnvironment: 'node',
coverageDirectory: './coverage/',
collectCoverage: true,
setupTestFrameworkScriptFile: './test/utils/setup'
}