The right way to mock dependencies in Node.js or webpack environment.
wipe-node-cache
to eliminate memory leaks in cache managementsetCacheControl
command to disable cache control (applicable for relative
plugin only)isolation
now working much more properly (#47)
auto __mocks__
was introduced by Jest.
I alwas like them, as long they are quite good way to structure your mocks, and it is possible to use jest-typed-mock to test them against real files.
__mocks__/fileName.js
will replace fileName.js
Rewiremock now supports webpack 4.
node-libs-browser
plugin, enabled by default in webpack environment, transforming path
to path-browserify
, and letting you a better and more transparent mocking experience.