Open romansp opened 1 year ago
I have the same issue actually. Any news about this?
I think I am also seeing something similar. I was in the process of upgrading a number of dependencies.
I've tried calling cleanup
manually along with component.unmount
(for @testing-library/vue
) and the previous instance is still in the DOM when the test runs
Describe the bug Components that render multiple root nodes or
<slot />
in root won't be cleaned up properly after each test or by callingcleanup
manually.To Reproduce The following test cases will currently fail if added to
auto-cleanup.js
.Expected behavior
cleanup
should remove all attached wrapping elements frombody
.Related information:
@testing-library/vue
version: 6.6.1Vue
version: 3.2.45node
version: 18.2.1npm
(oryarn
) version: yarn 3.2.4