Skip to content

Commit f9451a6

Browse files
committed
add information about Node 20.6.0 to docs
1 parent fa32f3c commit f9451a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/7-replacing-dependencies.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ safely (with great power, etc.):
143143
your own fake as a second argument (e.g. `td.replace('./path', td.func())`)
144144

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

0 commit comments

Comments
 (0)