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
The reason for this is that we now set the instance watcher to sync, which means the update event is never fired. This is a serious issue that I'm investigating, but it won't have a quick fix. For the moment, you will need to test by setting sync to false and using Vue.nextTick:
it('calls onUpdate when component updates',(done)=>{constonUpdate=jest.fn()constwrapper=mount(TestComponent,{sync: false,propsData: {
onUpdate
}})Vue.nextTick(()=>{expect(onUpdate).toHaveBeenCalled()done()})})
Version
1.0.0-beta.16
Reproduction link
https://github.com/vueComponent/ant-design
Steps to reproduce
What is expected?
After
setProps
,updated
method called at Modal.test.jsWhat is actually happening?
After
setProps
,updated
method not called at Modal.test.jsThe text was updated successfully, but these errors were encountered: