Skip to content

Files

Latest commit

d8ad1d2 · Dec 25, 2014

History

History
11 lines (6 loc) · 1018 Bytes

README.md

File metadata and controls

11 lines (6 loc) · 1018 Bytes

jest with jasmine-reporters

This is a sample repo that contains the getting started Jest example and outputs JUnit XML for each test using jasmine-reporters.

The problem is that Jest mocks everything by default and you have to unmock fs and path. Also you have to take care and use the 1.0.0 version of jasmine-reporters because Jest is build on Jasmine 1.3

Finally, don't forget to create the output folder before running jest and initialise jasmine-reporters with the right syntax

Code coverage

I've also added code coverage after an answer on StackOverflow.