To override imports with stubs in my unit tests I use babel-plugin-rewire
. However, this also modifies my code when not running normally. Is there a way to specify that babel-plugin-rewire
should only be used when testing?
To override imports with stubs in my unit tests I use babel-plugin-rewire
. However, this also modifies my code when not running normally. Is there a way to specify that babel-plugin-rewire
should only be used when testing?