Closed
Description
Version
1.0.0-beta.29
Reproduction link
https://codesandbox.io/s/y006o3zxqz
Steps to reproduce
Run the sanbox, and view the test results.
The second test fails, as it finds two buttons in the DOM.
What is expected?
The previous test's DOM to be removed from the document.
What is actually happening?
the old test DOM persists in the document.
When using document.querySelectorAll(...)
inside an app, and testing various scenarios, the old APPs DOM is not being removed from the JSDOM document when mountToDocument: true
is set during mount, causing unexpected results in the tests.