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
I'm trying to use rewiremock after converting from using rewire in a typescript project.
// ./rewiremock.tsimportrewiremock,{addPlugin,plugins}from'rewiremock'rewiremock.overrideEntryPoint(module)// this is important. This command is "transfering" this module parent to rewiremockaddPlugin(plugins.nodejs)// we need webpack aliasesaddPlugin(plugins.webpackAlias)// and all stub names would be a relativeaddPlugin(plugins.relative)// and all stubs should be used. Lets make it default!addPlugin(plugins.usedByDefault)export{rewiremock}// ./test/demo.test.tsimport{rewiremock}from'../rewiremock'
Even just importing is enough for the error to occur.
This has the same error as #137 but a different environment and setup.
The text was updated successfully, but these errors were encountered:
I'm trying to use
rewiremock
after converting from usingrewire
in a typescript project.Even just importing is enough for the error to occur.
The text was updated successfully, but these errors were encountered: