quibble
quibble copied to clipboard
Makes it easy to replace require'd dependencies.
I think the intention of the following code snipped is to ignore resolve calls until the first module gets "quibbled": (https://github.com/testdouble/quibble/blob/fac450e65d68a00411a7ed51fc29f19af581f95b/lib/quibble.mjs#L42C1-L44C4) ```typescript if (!quibbleLoaderState.quibbledModules) { return resolve() } ``` Because...
Since the auto loader [was added](https://github.com/testdouble/quibble/commit/2fb1aa8fd7748209fdad1d92c3abad3348d49d23), existing usages via `node --loader=testdouble` began applying the quibble resolver twice (note: this may only have become true in Node 21+). This causes infinite...