-
-
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
Include createTransformer options in babel-jest's getCacheKey() #6699
Conversation
Previously the options passed to `createTransformer()` were not taken into account when generating the cache key, causing incorrect cache hits when the options had changed. Fixes #6698.
Codecov Report
@@ Coverage Diff @@
## master #6699 +/- ##
=======================================
Coverage 63.71% 63.71%
=======================================
Files 235 235
Lines 8998 8998
Branches 3 3
=======================================
Hits 5733 5733
Misses 3264 3264
Partials 1 1 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thanks!
Many thanks :-) |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Previously the options passed to
createTransformer()
were not taken into account when generating the cache key, causing incorrect cache hits when the options had changed.Fixes #6698.
Test plan
I've repeated the STR from #6698 in a locally linked copy of Jest, and it no longer reproduces. I did not add a test, since there are no existing tests for
getCacheKey()
.