how to mock virtual module such as webpack federation module #501
Unanswered
wangfengyuan
asked this question in
Q&A
Replies: 1 comment
-
This is Vitest bug. You can try this until it is resolved: vi.mock('remote/button',
() => ({
someMethod: (params: any) => Promise.resolve(params),
}),
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
if my have this code using webpack fedefation in vite project
when i try to mock this as below
it does not work, how to mock this module
Beta Was this translation helpful? Give feedback.
All reactions