Skip to content

Commit

Permalink
Merge pull request #11 from negativetwelve/mark/test/simplify-coverage
Browse files Browse the repository at this point in the history
[Test] Only run the test suite once using jest with coverage, then report to coveralls
  • Loading branch information
negativetwelve committed Aug 11, 2017
2 parents 84bf6bd + 298768b commit 32d5238
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ test:
pre:
- yarn lint
override:
- yarn test
- yarn test:coverage
post:
- yarn coveralls
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
"preset": "react-native"
},
"scripts": {
"coverage": "nyc jest --coverage",
"coveralls": "yarn coverage && cat ./coverage/lcov.info | coveralls",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"lint": "eslint js",
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
"test": "jest",
"test:coverage": "jest --coverage"
}
}

0 comments on commit 32d5238

Please sign in to comment.