npm rewiremock 2.1.2
Webpack + Proxyquire API

latest releases: 3.14.5, 3.14.4, 3.14.3...
6 years ago

Rewiremock API is quite simply, and quite right. But sometimes it is overpower, and you need something simpler.
Introducing the new methods:

  1. rewiremock.proxy(file, stubs) – proxyquire style command, but stubs can be a function(to use rewiremock mock API inside)
  2. rewiremock.module(fileLoader, stubs) - the same function, but you will provide a require/import function by your own.

And, last but not least - rewiremock now supporting webpack.

Don't miss a new rewiremock release

NewReleases is sending notifications on new releases.