test-utils icon indicating copy to clipboard operation
test-utils copied to clipboard

Add examples in "Nuxt module" documentation

Open bokub opened this issue 3 years ago • 0 comments

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

bokub avatar Aug 23 '21 12:08 bokub