-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'subTree' of undefined if expose() is used #435
Comments
Thanks for the bug report and detective work. If you don't get a change to dig into this more, I will try get a fix done sooner rather than later. Have not played with |
I think this is actually vue's fault, if |
Looks like we do have a unit test - let's close this. We can re-open if it's not actually fixed. |
In
VueWrapper.hasMultipleRoots
,this.vm
is the exposed object instead of the component instance.https://github.com/vuejs/vue-test-utils-next/blob/c667907bac0db961439ccdca0644b54a5f5ee382/src/mount.ts#L437-L449
Should be something like this but always returning
i.proxy
:https://github.com/vuejs/vue-next/blob/fbf2d68bbcde75c95363e1fd17946c720d0f3925/packages/runtime-core/src/componentPublicInstance.ts#L207-L218
The text was updated successfully, but these errors were encountered: