many-fountain-92674
06/23/2022, 2:33 PM@cypress/vue
?
when using @vue/test-utils
directly it could be achieved as such, for example:
import { config } from '@vue/test-utils'
config.global.plugins.unshift([SomePlugin])
but that doesn't seem possible with @cypress/vue
I can, of course, use:
mount(Foo, { global: { plugins: [SomePlugin] } })
But the plugin is required for every test, so it's a bit convoluted to do it everytime.
I worked around it by always injecting the required plugin in my cy.mount
, which works fine, but won't work when importing the mount
directly, of course.