testdouble / quibble

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

fix module cache breaking for modules not being mocked #72

Closed connorjclark closed 2 years ago

connorjclark commented 2 years ago

This resolves https://github.com/testdouble/testdouble.js/issues/492 without breaking any existing tests.

Confirmed this work great in our usage of testdouble in Lighthouse tests

searls commented 2 years ago

Hand-merged this one after confirming locally b/c CI was disconnected. Thanks!

Landed in 0.6.10

searls commented 2 years ago

This was reverted in 0.6.11. See discussion in https://github.com/testdouble/testdouble.js/issues/493