Skip to content

Releases: theKashey/rewiremock

Cache Management

07 May 06:30
Compare
Choose a tag to compare
  • 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)

IE11 support

10 Nov 10:46
Compare
Choose a tag to compare

Features

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

Cache clearing speed

20 Oct 08:48
Compare
Choose a tag to compare

Bug fixes

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

Isolation and isolation

17 Oct 09:37
Compare
Choose a tag to compare

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

03 Oct 11:04
Compare
Choose a tag to compare

Fixes

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

Webpack related fix

03 Aug 13:23
Compare
Choose a tag to compare

Bugfixes

  • small but very important fix: #6

3.7.4

04 Jul 02:01
Compare
Choose a tag to compare

Bug fixes

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

All the things

29 Mar 05:23
Compare
Choose a tag to compare

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__

26 Mar 12:53
Compare
Choose a tag to compare

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

Webpack 4 support

25 Mar 23:57
Compare
Choose a tag to compare

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.