speedskater / babel-plugin-rewire

A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.
843 stars 90 forks source link

__set__ with an object does not return revert function #197

Open twhitbeck opened 6 years ago

twhitbeck commented 6 years ago

Calling __set__ with a string variableName returns a function to revert as expected, but when passing an object no revert function is returned.