testdouble.js
testdouble.js copied to clipboard
Suite test:esm fails under Node 21
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