For use with namespaced importing and proxyquire
npm install babel-plugin-proxyquire-namespace/moduleFile syntax when smashing dependenciesThis plugin simply adds proxyquire method calls to babel-plugin-namespaces
Read the documentation there for how to configure your namespaces in package.json.
This plugin includes functionality from the base plugin so you only need to install this one.
Simply replace "namespaces" key in babel plugins array with "proxyquire-namespace" and your
tests will pass again!
``
import { noCallThru } from 'proxyquire';
import { stub } from 'sinon';
const proxyquireStrict = noCallThru();
const stubs = {
stubFoo: stub(),
stubBar: stub()
};
const config = { static: 'test.value' };
const testModule = proxyquireStrict('./testModule', {
'
'
}).default;
``