We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://stackblitz.com/edit/github-ddvycp
const wrapper = await mountSuspended(OptionAPIComponent)
wrapper.vm.$data is empty wrapper.setData({...data}) will result into error:
wrapper.vm.$data
wrapper.setData({...data})
TypeError: Cannot add property, object is not extensible
Furthermore, I cannot call any method of the component instance:
TypeError: wrapper.vm.myMethod is not a function
Component written in composition api doesn't have this issue. @vue/test-utils doesn't have this issue.
No response
The text was updated successfully, but these errors were encountered:
I see the same issue, however, my component is written with the composition API.
Sorry, something went wrong.
Did you guys found a solution? i'm having the same issue in nuxt 3 app
No branches or pull requests
Environment
Reproduction
https://stackblitz.com/edit/github-ddvycp
Describe the bug
wrapper.vm.$data
is emptywrapper.setData({...data})
will result into error:Furthermore, I cannot call any method of the component instance:
Additional context
Component written in composition api doesn't have this issue.
@vue/test-utils doesn't have this issue.
Logs
No response
The text was updated successfully, but these errors were encountered: