-
-
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
Multiple projects - file resolution caching is shared though seperate resolvers can be specified #6724
Comments
Accidentally closed wrong issue, sorry! |
no problem. Now I've started to try and fix it I am not convinced jest is wrong any more! |
Cool, thanks for following up! |
From what I can tell, it seems like when |
resolvers are cached by |
setting |
We have a WIP PR on something similar already, but we didn't settle on implementation yet. Feel free to check out and find some inspiration: #5862 |
yep its a exact duplicate of #5597 thanks |
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. |
🐛 Bug Report
When using projects, the resolver caches between those projects even if different resolver's are specified.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that since projects can specify resolvers per project, that jest would not cache between them
I will try working on a PR since this is a feature I need.
In our codebase we compile multiple variants of our app and we use a string in the import statements to differentiate between the apps. I want to make it so that spec.a.js and spec.b.js resolve with preference to .a. and .b. respectively.. and apart from this hurdle it seems to work..
The text was updated successfully, but these errors were encountered: