You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where dataStub is an data object. myService goes through each key of dataStub. Now, rewiremock adds an extra property default to the stubs. This interferes with what the service is doing.
Is there a way to prevent rewiremock from adding that extra default property to a stub? Should it do this at all in a Node.js environment?
The text was updated successfully, but these errors were encountered:
That's my bad. It is a logic to partially mimic webpack behaviour, and that is needed only for dynamic imports.
There is no way to disable it now, but I will make it possible asap.
I'm doing something like this in a Node.js Mocha test
where
dataStub
is an data object.myService
goes through each key ofdataStub
. Now, rewiremock adds an extra propertydefault
to the stubs. This interferes with what the service is doing.Is there a way to prevent rewiremock from adding that extra
default
property to a stub? Should it do this at all in a Node.js environment?The text was updated successfully, but these errors were encountered: