vitest and svelte component's onMount #3710
-
I'm trying to use Svelte to create a simple reactive component. The component loads data from an api server I have a simple vitest that renders the component and verifies the value of the html element. However while running under vitest the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Seems to be related to testing-library/svelte-testing-library#222 , still not sure if its a vitest issue or a issue with |
Beta Was this translation helpful? Give feedback.
-
There's more discussion about this at #2834. There are various work-arounds mentioned on that issue. |
Beta Was this translation helpful? Give feedback.
There's more discussion about this at #2834. There are various work-arounds mentioned on that issue.