File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,6 @@ Each Pull Request will contain explanation and steps taken to complete a feature
11
11
## Tests
12
12
13
13
- [ Setup tests] ( https://github.com/brunolm/react-how-to/pull/1 )
14
+ - [ Setup test coverage] ( https://github.com/brunolm/react-how-to/pull/5 )
15
+
14
16
- [ Add project on Travis CI] ( https://github.com/brunolm/react-how-to/pull/2 )
Original file line number Diff line number Diff line change 11
11
"start" : " react-scripts-ts start" ,
12
12
"build" : " react-scripts-ts build" ,
13
13
"test" : " react-scripts-ts test --env=jsdom" ,
14
+ "coverage" : " npm test -- --coverage" ,
14
15
"eject" : " react-scripts-ts eject"
15
16
},
17
+ "jest" : {
18
+ "collectCoverageFrom" : [
19
+ " !src/(index|specHelper).tsx" ,
20
+ " !src/(setupTests|registerServiceWorker).ts" ,
21
+ " src/**/*.{ts,tsx}"
22
+ ]
23
+ },
16
24
"devDependencies" : {
17
25
"@types/enzyme" : " ^3.1.4" ,
18
26
"@types/enzyme-adapter-react-16" : " ^1.0.1" ,
You can’t perform that action at this time.
0 commit comments