Closed cortopy closed 3 months ago
Seems to work for me (check out #333)
only thing I changed was to stick an await
on the rerender
.
@yanick I agree, this is a bug in @cortopy's test. rerender needs an await
or to be used inside act
for changes to hit the DOM. I think this issue can be closed
Yup. I left it open in case they'd be a follow-up. But it's been a fortnight, so we can close.
As per https://github.com/testing-library/svelte-testing-library/pull/311, "introend" tests seem to work fine.
However, in this scenario the tests break.
The component is exactly the same, except now
show
is also a prop. The component can be rendered by either clicking the button, or if the parent changes the exposed variable totrue