When using rerender from @testing-library/vue the rendered component does not receive the props passed in the method. The issue is related with the suspense wrapper component created on the renderSuspended wrapper of the render method.
In the reproduction, you can see that the wrapper component created is the one that inherits the props passed to the rerender method. The expected HTML should look like this:
Environment
Darwin
v22.11.0
3.14.159
3.15.0
2.10.3
pnpm@9.12.3
-
-
-
-
Reproduction
https://stackblitz.com/edit/github-5sxamx-wxweax?file=components%2FMyComponent.nuxt.spec.ts
Describe the bug
When using
rerender
from@testing-library/vue
the rendered component does not receive the props passed in the method. The issue is related with the suspense wrapper component created on therenderSuspended
wrapper of therender
method.In the reproduction, you can see that the wrapper component created is the one that inherits the props passed to the
rerender
method. The expected HTML should look like this:But it looks like this:
Additional context
I tried solving the issue with no avail, I'm sorry I can not be of more help 😢