Hi there
I am missing up documentation for how to test the nuxt/content module.
I am making a text based game, where I read metadata (frontmatter) into a vuex store.
Inside the store, I can access the $contentfunction from this by calling:
So, what should I do, to have $content injected into the this of the vuex store in my test?
A small example of using the module with some kind of testing would be beautiful - I havent been able to locate any.
Hi there I am missing up documentation for how to test the nuxt/content module. I am making a text based game, where I read metadata (frontmatter) into a vuex store. Inside the store, I can access the
$content
function fromthis
by calling:But when I try to run my jest test code, and call dispatch to have my method called
I get the following error message:
So, what should I do, to have
$content
injected into thethis
of the vuex store in my test? A small example of using the module with some kind of testing would be beautiful - I havent been able to locate any.Best Agata