We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465676f commit 11bf948Copy full SHA for 11bf948
src/__tests__/cleanup-throw.js
src/index.js
@@ -98,11 +98,8 @@ function cleanupAtWrapper(wrapper) {
98
document.body.removeChild(wrapper.element.parentNode)
99
}
100
101
- try {
102
- wrapper.unmount()
103
- } finally {
104
- mountedWrappers.delete(wrapper)
105
- }
+ wrapper.unmount()
+ mountedWrappers.delete(wrapper)
106
107
108
// Vue Testing Library's version of fireEvent will call DOM Testing Library's
0 commit comments