Unit Testing Vite + React with Vitest #590
Unanswered
muhammadhafizmm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I want to ask a question regarding unit testing on vite-plugin-federation using vitest. I'm confused, maybe doing unit testing on remote applications (exposing components) is possible, because we only need to make unit tests on each component that will be exposed. However, when we want to see the suitability of the exposed component results in the host application (which consumes the component), is it possible to do a simple async and create a unit test for the component?
I tried once, but it didn't go well.
Basically I just called a regular component using lazy import and suspense, but it seems that when it is called from federation, it needs different treatment. Can anyone help me on this?
Beta Was this translation helpful? Give feedback.
All reactions