Skip to content

palcu/jest-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

jest with jasmine-reporters for Jenkins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published