[Vitest] - Unit Testing server components #1744
theboyWhoCriedWoolf
started this conversation in
General
Replies: 1 comment
-
This might be relevant for you: #771 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to test server components which are all calling
getTranslations
. this seems to work fine for a Root component without children, however, seems to throw the following error whenchild
components are also present.A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.
I am using:
vitest
rtl
My setup is
My test script is:
Beta Was this translation helpful? Give feedback.
All reactions