Vue warnings when registering new pinia instances during testing #1234
Unanswered
iBelg
asked this question in
Help and Questions
Replies: 2 comments 2 replies
-
Maybe you executed createPinia() twice in the main.js file. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I also got this warning. I think beforeEach(() => {
const app = createApp({});
const pinia = createPinia().use(MyPlugin);
app.use(pinia);
setActivePinia(pinia);
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently trying to test my store using vitest and this ends up working just fine, but the console gets absolutely flooded with warnings from Vue:
with the following setup:
That's pretty much exactly the same as how it's described in the documentation on how to test Pinia, but I was wondering if it's expected for the console to be flooded with these warnings. Again, the end result is that my tests succeed, so everything works fine, but I'd like to not have all those warnings if at all possible.
Beta Was this translation helpful? Give feedback.
All reactions