Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add information about Node 20.6.0 to docs
  • Loading branch information
giltayar committed Sep 16, 2023
1 parent fa32f3c commit f9451a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/7-replacing-dependencies.md
Expand Up @@ -143,7 +143,8 @@ safely (with great power, etc.):
your own fake as a second argument (e.g. `td.replace('./path', td.func())`)

* If you're using native (and not transpiled) ES modules, and you're using
`td.replaceEsm`, you need to load `testdouble.js` as an ESM loader (more about
`td.replaceEsm`, and you're using a Node.js version smaller than 20.6.0,
you need to load `testdouble.js` as an ESM loader (more about
the why below), using `node --loader=testdouble`, or alternatively, if you're
using a test runner that does not support loaders, you can use
`NODE_OPTIONS="--loader=testdouble" testrunner ...`.
Expand Down

0 comments on commit f9451a6

Please sign in to comment.