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

the resolver is very slow #6

Open
faassen opened this issue May 18, 2022 · 1 comment
Open

the resolver is very slow #6

faassen opened this issue May 18, 2022 · 1 comment

Comments

@faassen
Copy link

faassen commented May 18, 2022

When I use the included resolver, my (few) tests take more than 7 seconds, taking a while to start running. When I use the default resolver, the tests take little over 1 second. That's a massive difference and has a real impact on how easy it is to develop with tests.

The comment says:

uses a webpack style resolver, the default one has many issues.

It's using https://www.npmjs.com/package/enhanced-resolve-jest which in turn uses https://github.com/webpack/enhanced-resolve

I'd be interested in seeing what I'm paying for in some more detail. And maybe there's a way to configure this resolver to be faster? (I tried upgrading enhanced-resolver to 5.9.3, the latest release, but it made no difference)

@faassen
Copy link
Author

faassen commented May 19, 2022

It's also interesting to speculate why enhanced-resolver is so much slower. Is this because it does more work per module, or because it actually finds many more modules and needs to disregard them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant