-
Notifications
You must be signed in to change notification settings - Fork 787
Jest support #220
Comments
No idea. I suspect the way jest works by mocking everything by default, it is hooking the require function and not letting istanbul do its thing. A simple github repo with a lib file, a test file and a build script that uses jest will help me debug this faster. |
I made a repo by using the simple getting started guide. I tried to unmock the istanbul module, but it still does not work. |
jest uses You'll have to talk to the jest team to find a solution assuming they are interested in implementing one. |
Thank you for the answer. |
@palcu FWIW the entire approach jest takes with taking over https://github.com/substack/node-mkdirp/blob/master/test/opts_fs.js Like the javascript language, there are some good parts in the react ecosystem (v-dom, flux) and there are some bad parts (jsx, jest). Try to avoid react cargo culting and only use the good parts. |
Hello,
I am trying to configure Istanbul to use the https://github.com/facebook/jest framework built on top of Jasmine. When I run
istanbul cover jest
I getNo coverage information was collected, exit without writing coverage information
.Could you please tell me if there is a simple solution for this that I am overlooking, or do I have to implement from scratch Istanbul support in Jest.
Thank you.
The text was updated successfully, but these errors were encountered: