vuejs / pinia

🍍 Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
https://pinia.vuejs.org
MIT License
12.91k stars 1.02k forks source link

fix: @pinia/nuxt breaks createTestingPinia #2578

Closed OnlyWick closed 6 months ago

OnlyWick commented 6 months ago

fix #2555

netlify[bot] commented 6 months ago

Deploy Preview for pinia-playground canceled.

Name Link
Latest commit 235483b745e0844c4f63f9e1e23a50f1ce33565d
Latest deploy log https://app.netlify.com/sites/pinia-playground/deploys/65cbb3ba42e3ad0008abddab
netlify[bot] commented 6 months ago

Deploy Preview for pinia-official canceled.

Name Link
Latest commit 235483b745e0844c4f63f9e1e23a50f1ce33565d
Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/65cbb3ba939a5b000856299b
OnlyWick commented 6 months ago

The reason is that there is a conflict between the pinia instance created by @pinia/nuxt and createTestingPinia. Ultimately, the pinia instance created by @pinia/nuxt takes precedence, causing the tests to fail.

OnlyWick commented 6 months ago

Sad :-(. It's diffcult to me. I gave up.

I have subscribed to this issue, so please go ahead and fix it. I would like to learn how it is fixed.

posva commented 6 months ago

No worries, thanks for the try!