Skip to content

Commit

Permalink
chore(test): Add missing scripts for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
guioconnor committed Mar 12, 2018
1 parent f0b30cb commit b870911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ node_js:
# - '6'
# - '4'
script:
- yarn test
- yarn coverage
- yarn check-coverage
after_success:
- npm run travis-deploy-once "npm run semantic-release"
- yarn check-coverage
- yarn report-coverage
branches:
except:
- /^v\d+\.\d+\.\d+$/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"scripts": {
"commit": "git-cz",
"coverage": "jest --coverage",
"report-coverage": "cat ./coverage/lcov.info | codecov",
"check-coverage": "istanbul check-coverage -statements 25 -branches 25 -functions 25 -lines 25",
"test": "jest",
"test": "jest --watch",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
Expand Down Expand Up @@ -52,8 +53,7 @@
},
"config": {
"ghooks": {
"pre-commit": "yarn test && yarn check-coverage"
"pre-commit": "yarn coverage && yarn check-coverage"
}
},
"dependencies": {}
}
}

0 comments on commit b870911

Please sign in to comment.