testdouble / quibble

Makes it easy to replace require'd dependencies.
94 stars 25 forks source link

quibble does not work in Node.js 20 because loaders were moved off thread #95

Closed giltayar closed 1 year ago

giltayar commented 1 year ago

v20 moves the module loaders to a separate worker thread. Because Quibble needs to communicate between the user thread (that calls quibble.esm to mock modules) and the module loader (which does the actual mocking), we need to change the whole way that this communication happens.

giltayar commented 1 year ago

On it... 😊

giltayar commented 1 year ago

Found a MAJOR bug in loaders in v20 which doesn't allow it to work. Have to wait for it to get fixed.

https://github.com/nodejs/node/issues/47655