1.3.6 - directChildOnly
Sometimes you have to mock only directly used modules, or direct children. It was possible with relative plugin, but it was not flexible.
New API:
rewiremock('somemodule')
.with(stub)
.directChildOnly()As result somemodule will be mocked only as a top level dependency. If not - no mocking will occurs.