-
-
Notifications
You must be signed in to change notification settings - Fork 64
Options for implementing test coverage, CreateReactApp.
MichaelDimmitt edited this page Jul 6, 2018
·
4 revisions
Auxiliary wiki page, see Guide Code-Coverage-with-React-Scripts-test for overview
- Change package.json test script completely. #634
// package.json add test script;
"test": "react-scripts test --coverage",
// .travis.yml
npm install -g codecov
npm test && codecov
- Add coverage script and change test script in .travis.yml #632
// package.json add coverage script;
"coverage": "react-scripts test --coverage",
// .travis.yml
npm install -g codecov
npm test --coverage && codecov
- Only change test script in .travis.yml #631
// .travis.yml
npm install -g codecov
npm test --coverage && codecov