Releases: theKashey/rewiremock
Releases · theKashey/rewiremock
Cache Management
- bumps
wipe-node-cache
to 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
setCacheControl
command to disable cache control (applicable forrelative
plugin 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
isolation
now 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.default
to 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.js
will replacefileName.js
Webpack 4 support
Rewiremock now supports webpack 4.
- No API changes.
- new
node-libs-browser
plugin, enabled by default in webpack environment, transformingpath
topath-browserify
, and letting you a better and more transparent mocking experience.