-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
mappedCoverage.addStatement is not a function #3560
Comments
This only happens when piping the tsc output through babel-jest. |
Probably a ts-jest issue. |
I meet a "TypeError: mappedCoverage.addStatement is not a function" error while using
PS: |
Please open up a new issue with reproduction steps |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
this solution work me rm -rf $TMPDIR/react-* && watchman watch-del-all && npm cache clean --force && npm run jest --clearCache |
I am not using |
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. |
Do you want to request a feature or report a bug?
A bug.
What is the current behavior?
I updated my project to
Jest 20.0.1
and updatedts-jest
to20.0.3
as well. I tried out the new coverage feature and get following error:If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can
yarn install
andyarn test
.You can find a repo here
What is the expected behavior?
Report test coverage.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
There is also an issue at the
ts-jest
project: kulshekhar/ts-jest#211 We are not really sure if this is ats-jest
or aJest
issue 🤔The text was updated successfully, but these errors were encountered: