testdouble / testdouble/testdouble.js
Suite test:esm fails under Node 21
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 140
- Avg merge
- 22h
- Merged PRs (30d)
- 1
Description
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 -voutput: Working under v20.5.0, failing under 21.0.0, failing under v21.6.1 -
npm -v(oryarn --version) output: 9.8.0 under v20.x, 10.2.4 under v21.x -
npm ls testdouble(oryarn list testdouble) version: 3.20.2
Failing Test
8 out of 11 tests in the test:esm suite are failing under Node 21 but pass under Node 20
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the test:esm suite under Node 20.5.0 and Node 21.0.0 or 21.6.1, then compare the eight failing tests with the three that pass. Done means ES Module mocking works under Node 21 while the suite continues to pass under Node 20.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100