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

Fix: Resolve 3rd party esm without quibbledUrl #115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andreek
Copy link

@andreek andreek commented Sep 11, 2024

In Node.js >= v21.0.0 quibble adds 3rd party libs with ?__quibble=0 suffix as key to the quibbled modules. When Node.js is resolving the real module quibble does not find the mock, because this url does not include ?__quibble=0.

I think it's related to these API changes: #96

This PR fixes this problem by excluding urls with node_modules from being resolved with quibbledUrl.

Fixes: testdouble/testdouble.js#530

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

Successfully merging this pull request may close these issues.

Suite test:esm fails under Node 21
1 participant