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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
placeholderplugin is:When I include the plugin in the
mountmethod call, I get an error oninjectinstructions :It looks like the Nuxt
injectfunction 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