Testing Pinia with Vitest - Error: [vite-node] Failed to load @pinia/testing #15269
Unanswered
aabm00
asked this question in
Quasar App Extensions
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.
-
Hi
I'm trying to figure out how to test Pinia with vitest and I can't get it to work. I have installed the AE to test with vitest and I am following the example of Mocking Pinia but in Javascript
TestingPinia.vue (Te file to test)
example-store.js (Pinia Store)
I have created a composable to add the install-pinia function code but in javascript. Probably here is the error
useMockPinia.js (Composable)
TestingPinia.test.js (Test for Pinia)
The Error I get when run the test is:
I would appreciate any help to configure correctly Pinia to work with Vitest in Quasar.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions