rewire-loader
Adds rewire-like bindings to a webpack loader. Works well with mocha-webpack
Usage
Suppose you have a module.js
file with the content:
const SOME_CONSTANT = 15;var someDependency = ; module { return ;};
You can stub out your dependencies with __set__
myModule = ;myModule;; // returns mockDependency
You can also get values with __get__
myModule = ;myModule; // returns 15