Skip to content
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

Merged
merged 1 commit into from
Jul 16, 2018
Merged

Include createTransformer options in babel-jest's getCacheKey() #6699

merged 1 commit into from
Jul 16, 2018

Conversation

edmorley
Copy link
Contributor

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().

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-io
Copy link

Codecov Report

Merging #6699 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d05e53a...1dff37d. Read the comment docs.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

@SimenB SimenB merged commit ee0f92e into jestjs:master Jul 16, 2018
@edmorley edmorley deleted the babel-jest-fix-getCacheKey branch July 16, 2018 08:15
@edmorley
Copy link
Contributor Author

Many thanks :-)

@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

babel-jest's getCacheKey() doesn't take into account options passed to createTransformer()
4 participants