Rewiremock Versions Save

The right way to mock dependencies in Node.js or webpack environment.

v3.14.0

4 years ago
  • 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 for relative plugin only)

3.12.1

5 years ago

Features

  • rewiremock could work inside IE11 (with proper polyfills) #57 + #59

3.10.0

5 years ago

Bug fixes

  • nodejs cache clearing now require O(n), not O(n^2), as before #20

3.9.0

5 years ago

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

3.8.0

5 years ago

Fixes

withDefault got a simplified setup. With some probability some old version of TS would not stand it. #43

3.7.5

5 years ago

Bugfixes

  • small but very important fix: #6

3.7.4

5 years ago

Bug fixes

  • webpack related issues related to default export (#22)
  • fix typo in mockThoughByDefault -> mockThroughByDefault plugin (#33)

3.7.0

6 years ago

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.

3.6.0

6 years ago

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 replace fileName.js

3.5.3

6 years ago

Rewiremock now supports webpack 4.

  • No API changes.
  • new 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.