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
Hey guys, I have a problem to run tests using Vitest, when we have Imports for remote modules (Webpack based module federations). its raising this error:
I tried to mock it as virtual module by adding this: alias: { '$remote/App': path.resolve('./__mocks__/test.ts') }
Describe the bug
Hey guys, I have a problem to run tests using Vitest, when we have Imports for remote modules (Webpack based module federations). its raising this error:
I tried to mock it as virtual module by adding this:
alias: { '$remote/App': path.resolve('./__mocks__/test.ts') }
But still no luck.
NOTE: we are using Vitest on webpack based app. Because module federation is needed for us, and we can't use Vite with it's https://github.com/originjs/vite-plugin-federation plugin because it has a big issues in here: originjs/vite-plugin-federation#294 which makes the whole plugin useless.
Reproduction
https://stackblitz.com/edit/vitejs-vite-pq9gts?file=vitest.config.ts,src%2Fapp%2FApp.tsx,src%2Fapp%2FApp.test.tsx&terminal=dev
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: