-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Labels
Description
Environment
- Operating System: Linux
- Node Version: v18.18.0
- Nuxt Version: 3.9.3
- CLI Version: 3.10.0
- Nitro Version: 2.8.1
- Package Manager: npm@10.2.3
- Builder: -
- User Config: devtools
- Runtime Modules: -
- Build Modules: -
Reproduction
https://stackblitz.com/edit/github-ddvycp
Describe the bug
const wrapper = await mountSuspended(OptionAPIComponent)wrapper.vm.$data is empty
wrapper.setData({...data}) will result into error:
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
Additional context
Component written in composition api doesn't have this issue.
@vue/test-utils doesn't have this issue.
Logs
No response
Reactions are currently unavailable