We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mocking ESM works under Node 20 but not under Node 21
ES Module mocking does not appear to be working under Node 21.
node -v
npm -v
yarn --version
npm ls testdouble
yarn list testdouble
8 out of 11 tests in the test:esm suite are failing under Node 21 but pass under Node 20
test:esm
The text was updated successfully, but these errors were encountered:
@giltayar Would really appreciate some of your node ESM loader magic here. Wish I had more background context to knock this one out myself.
Sorry, something went wrong.
Do you support v21 for ESM? I'm having some weird issues with replaceESM. https://github.com/testdouble/testdouble.js/blob/main/.github/workflows/test.yml#L17
Successfully merging a pull request may close this issue.
Description
Mocking ESM works under Node 20 but not under Node 21
Issue
ES Module mocking does not appear to be working under Node 21.
Environment
node -v
output: Working under v20.5.0, failing under 21.0.0, failing under v21.6.1npm -v
(oryarn --version
) output: 9.8.0 under v20.x, 10.2.4 under v21.xnpm ls testdouble
(oryarn list testdouble
) version: 3.20.2Failing Test
8 out of 11 tests in the
test:esm
suite are failing under Node 21 but pass under Node 20The text was updated successfully, but these errors were encountered: