Releases: theKashey/rewiremock
Releases · theKashey/rewiremock
Cache Management
- bumps
wipe-node-cacheto eliminate memory leaks in cache management - fixes some cache related issues (adds tests around proper bahavior)
- doubles cache clearing speed by making a single pass instead of two
- introduces
setCacheControlcommand to disable cache control (applicable forrelativeplugin only)
IE11 support
Cache clearing speed
Bug fixes
- nodejs cache clearing now require O(n), not O(n^2), as before #20
Isolation and isolation
Features
- now you are able to mock any dependency, even if it does not exists (#46)
Bug fixes
isolationnow working much more properly (#47)- isolation({ noAutoPassBy: true }) - to disable auto-allowance for modules with mocked parents
- isolation({ noParentPassBy: true }) - to disable auto-allowance for modules with allowed parents
Typescript 3 fix
Fixes
withDefault got a simplified setup. With some probability some old version of TS would not stand it. #43
Webpack related fix
Bugfixes
- small but very important fix: #6
3.7.4
All the things
Rewiremock is not feature complete
Features
rewiremock.config.defaultto being able preconfigure it- "jest"-style mock hoisting. Requires babel plugin, enabled top-level overrides.
__mocks__
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.
Features
- auto mocking.
__mocks__/fileName.jswill replacefileName.js
Webpack 4 support
Rewiremock now supports webpack 4.
- No API changes.
- new
node-libs-browserplugin, enabled by default in webpack environment, transformingpathtopath-browserify, and letting you a better and more transparent mocking experience.