-
-
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
Tree shanking for re-exported entry #11334
Labels
Comments
#11234 talks about similar thing (entry/barrel) but more about performance in that issue. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🚀 Feature Proposal
As the following description. In watch mode,
Container A
related test suits will not run while Button Change:As a developer, I only want to rerun related tests.
Now:
collectModules
logic not expose to user.dependencyExtractor
use regex match.Hope:
dependencyExtractor
extract dependencies withimport
export
info.collectModules
let use decided which file need to run.Motivation
My project use
index.tsx
re-exported a lot of components.In jest watch mode, many relationship test suites run when I change only one basic component.
If could tree shaking the re-exported entry, would reduce many times.
Example
According to above picture, When
Button
changed,Container A
related test will not running.Only
Tab
component changed,Container A
will run.Pitch
Why does this feature belong in the Jest core platform?
Common feature proposals that do not typically make it to core:
The text was updated successfully, but these errors were encountered: