Component testing in Nuxt : "n is not a function" when including plugins #30397
Unanswered
franck-grenier
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Cypress,
I'm testing my Nuxt Vue components with Cypress and I sometimes need to include plugins when I mount my component.
I do the following:
My
placeholder
plugin is:When I include the plugin in the
mount
method call, I get an error oninject
instructions :It looks like the Nuxt
inject
function is unknown in the Cypress component testing context.What should I do ? I can't find any documentation about this...
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions