Vue Comonpent test using cypress, getActivePinia was called with no active Pinia #2325
Unanswered
steelONIONknight
asked this question in
Help and Questions
Replies: 1 comment
-
You cannot call the |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Here are my code snippets:
Test.vue
check.js
index.js
My test file,
temp.cy.js
When I ran this test, I'll get a error:
getActivePinia was called with no active Pinia.
I tried to change code of
check.js
to this:or
and then component cannot be rendered, get error:
Cannot read properties of undefined (reading common)
How can I fix this problem? what's wrong with my code?
Beta Was this translation helpful? Give feedback.
All reactions