test-utils
test-utils copied to clipboard
Add examples in "Nuxt module" documentation
Hi,
I'm trying to use test-utils for a Nuxt project, I managed to test that my plugin was injected using the example code from the documentation, but then I'm stuck because the documentation doesn't explain anything else.
How can I access the Nuxt context from my test?
For example, if a plugin injects a function with inject('myPlugin', myPluginFunction)
, how do I access this.$myPlugin
from a test?
Thanks a lot