Skip to content

Commit d8ad1d2

Browse files
committed
Update README.md
1 parent dade5e9 commit d8ad1d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ This is a sample repo that contains the [getting started](http://facebook.github
55
The problem is that Jest mocks everything by default and you have to [unmock](https://github.com/palcu/jest-example/blob/master/__tests__/sum-test.js) `fs` and `path`. Also you have to take care and use the `1.0.0` [version](https://github.com/palcu/jest-example/blob/master/package.json#L11) of `jasmine-reporters` because Jest is build on Jasmine 1.3
66

77
Finally, don't forget to create the `output` folder before running `jest` and initialise `jasmine-reporters` with the [right syntax](https://github.com/palcu/jest-example/blob/master/setup-jasmine-env.js#L10-L11)
8+
9+
# Code coverage
10+
11+
I've also added code coverage after an [answer on StackOverflow](http://stackoverflow.com/questions/24825860/code-coverage-for-jest/27479903#27479903).

0 commit comments

Comments
 (0)