/jest-example

jest with jasmine-reporters for Jenkins

Primary LanguageHTML

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.