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

Pass the normalized configuration to script transformers #7148

Merged

Conversation

rubennorte
Copy link
Contributor

Summary

Script transformers receive a string with all the configuration to take into account for the cache key. That might cause the generation of new cache keys even if the changes in the configuration don't affect the transformed files. This passes the normalized configuration so the cache key can take into account specific fields in the configuration instead of the whole as a string.

Test plan

Updated a snapshot from the current tests.

@rubennorte rubennorte force-pushed the pass-raw-config-to-script-transformers branch from f2fa742 to f3ec110 Compare October 12, 2018 13:40
@thymikee
Copy link
Collaborator

Can we remove the configString now?

@rubennorte
Copy link
Contributor Author

I think we should preserve it for backwards compatibility. I know next version is major but there's no need to change this (its impact in performance is negligible).

@rubennorte rubennorte merged commit 1480d84 into jestjs:master Oct 12, 2018
@rubennorte rubennorte deleted the pass-raw-config-to-script-transformers branch October 12, 2018 14:24
@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.

4 participants