You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@xanf Hey Illya. Sorry for tagging you here, but it seems that changes in #1752 may be related to this issue. If you'll have time to look into it, that would be great. Maybe it would be easy for you to spot an issue, I'm quite new to this codebase.
Here is a unit test to reproduce the issue (when added to the setProps.spec.js)
it.only('should preserve component instance references when setting properties with setProps',async()=>{constSlotComponent={template: '<div></div>'}constwrapper=mountingMethod(ComponentWithSlots,{slots: {default: SlotComponent}})expect(wrapper.vm.$slots.default[0].componentInstance).toBeDefined()// Doesn't matter which property to set, even non-defined oneawaitwrapper.setProps({test: true})// Should not depend on "setProps" callsexpect(wrapper.vm.$slots.default[0].componentInstance).toBeDefined()})
Version
1.2.2
Reproduction link
github.com
Steps to reproduce
npm install
npm run test
What is expected?
Test will successfully pass
What is actually happening?
Test is failing
Test would be failing unless
@vue/test-utils
downgraded to thev1.1.2
or lower, which makes me certain it was introduced inv1.1.3
.The text was updated successfully, but these errors were encountered: