Stubbing imports
Closed this issue · 1 comments
djskinner commented
Is it possible to use this plugin to stub SomeMixin
in the following situation?
import React from 'react';
import SomeMixin from './SomeMixin';
const Component = React.createClass({
mixins: [ SomeMixin ],
render: function () {
return (
<div>
...
</div>
);
}
});
export default Component;
eventualbuddha commented
Right now this plugin takes advantage of the nature of ES module bindings, but default exports do not use bindings. Therefore default exports cannot be stubbed with this plugin. I'll add a note to the README.