-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running with --coverage has different test output #3549
Comments
Does it happen on Jest@20? |
Sorry that it took a while for me to test on jest@20, just did and yes, the output is still different.
|
This might be because Istanbul wraps your code in another function to calculate the coverage... facebook/idx#19 has more info, I'm closing in favor of facebook/idx#19 |
In case someone else is looking for a suggestion / workaround: I decided to use So with a .babelrc like the following you can avoid experiencing this issue, while profiting from
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi all,
At the beginning I though I just needed troubleshoointg help, but I think I have found a bug.
I first opened a question on stackoverflow: http://stackoverflow.com/questions/43910088/jest-error-running-a-file-with-idx-operator
Then I realized that no errors where prompted without coverage, so the test suite, babel configuration and everything else seems right.
This is the error that appears with
--coverage
option:I think the output shouldn't differ with or without coverage and thus this must be a bug.
The text was updated successfully, but these errors were encountered: