File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Check out the test examples on GitHub for further details.`)
34
34
// https://github.com/vuejs/vue-test-utils-next/blob/master/src/mount.ts#L309
35
35
unwrapNode ( wrapper . parentElement )
36
36
37
- mountedWrappers . add ( wrapper )
37
+ mountedWrappers . add ( { wrapper, container } )
38
38
39
39
return {
40
40
container,
@@ -59,9 +59,9 @@ function cleanup() {
59
59
mountedWrappers . forEach ( cleanupAtWrapper )
60
60
}
61
61
62
- function cleanupAtWrapper ( wrapper ) {
63
- if ( wrapper . element ?. parentNode ? .parentNode === document . body ) {
64
- document . body . removeChild ( wrapper . element . parentNode )
62
+ function cleanupAtWrapper ( { wrapper, container } ) {
63
+ if ( container . parentNode === document . body ) {
64
+ document . body . removeChild ( container )
65
65
}
66
66
67
67
wrapper . unmount ( )
You can’t perform that action at this time.
0 commit comments