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
This code works with just the default or named modules, however, using both in conjunction causes the default import to fail.
Temporary workaround:
Instead of only using export default on your current default module, export it as both a default and named export, eg named2. Then you can import all your modules as named modules and the imports will work:
Repro:
'../path/to/module': { default: someDefaultMock, named: someNamedMock },
This code works with just the
default
ornamed
modules, however, using both in conjunction causes the default import to fail.Temporary workaround:
Instead of only using
export default
on your current default module, export it as both a default and named export, egnamed2
. Then you can import all your modules as named modules and the imports will work:'../path/to/module': { named2: someDefaultMock, named: someNamedMock },
The text was updated successfully, but these errors were encountered: