injected-loader
Webpack dependency injection for testing
Usage
// my_great_method.js { return false; };
// great_method_proxy.js; { return ;}
// import/require a dependency with the `injected` loader// a function is returned that allows injecting dependecies to override;var MockGreatMethod = jasmineand; // invoke the function with an object, keys must match// import/require statements, the key './my_great_method.js'// matches the import statement in great_method_proxy.jslet GreatMethodProxy = ; ;