Skip to content

test_runner: mock_loader resolve the cjs and esm formats respectively.#53846

Merged
aduh95 merged 10 commits intonodejs:mainfrom
syi0808:fix/module-mock-throw-error-wrong-import
Aug 6, 2024
Merged

test_runner: mock_loader resolve the cjs and esm formats respectively.#53846
aduh95 merged 10 commits intonodejs:mainfrom
syi0808:fix/module-mock-throw-error-wrong-import

Conversation

@syi0808
Copy link
Contributor

@syi0808 syi0808 commented Jul 14, 2024

This issue was caused by recovering specifier in cjs resolve without format(esm,cjs) check in mock_loader.
So I did resolve logic differently for each format. And also added test.

Fixes: #53807

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_runner: using module mocking confuses all future esm imports to use cjs path resolution

7 participants