I implemented the changes necessary for this, while supporting the old --loader interface for both new and old Node.js versions. So the tests run without --loader if running under a node version that supports registering, and also with --loader for all versions.
(note that the code is getting hairier with every change in the loader specification. Hopefully, once 20 will become the oldest version we can do a clean sweep that will remove all this cruft, because it seems that the loader API has finally stabilized)
As usual, once quibble is released, I'll test and update testdouble.js with the new version and also update its documentation.
Node.js v20.6.0 has the ability to register a loader and thus auto load it without the user needing to
--loader
it (https://github.com/nodejs/node/pull/46826).I implemented the changes necessary for this, while supporting the old
--loader
interface for both new and old Node.js versions. So the tests run without--loader
if running under a node version that supports registering, and also with--loader
for all versions.(note that the code is getting hairier with every change in the loader specification. Hopefully, once 20 will become the oldest version we can do a clean sweep that will remove all this cruft, because it seems that the loader API has finally stabilized)
As usual, once
quibble
is released, I'll test and updatetestdouble.js
with the new version and also update its documentation.