One "downside" of having Vue components written in script setup is that wrapper.vm only knows methods that the components exposed via defineExpose. Since we don't want to do this, we often define wrapper.vm as any in tests. It would be better to trigger the method/property change via DOM interaction (e.g. button click triggers a method).
One "downside" of having Vue components written in script setup is that
wrapper.vmonly knows methods that the components exposed viadefineExpose. Since we don't want to do this, we often definewrapper.vm as anyin tests. It would be better to trigger the method/property change via DOM interaction (e.g. button click triggers a method).