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
Spying and mocking is using the same technique by replacing the original function. But this only works for functions which are part of an object and accessible from outside. That's not vue specific and the same thing for common js modules as well. So unfortunately this is not possible
Describe the bug
I tried solutions from this #775 but they don't work on my side.
MyComponent.vue
MyComponent.spec.ts
=> Error
To Reproduce
Expected behavior
The test should be passed
Related information:
@vue/test-utils
version: ^2.0.2Vue
version: ^3.2.37node
version: 16.14.2npm
(oryarn
) version: yarn 1.22.17Additional context
The text was updated successfully, but these errors were encountered: