Document using Pinia in testing #591
Labels
📄 aspect: text
Concerns the textual material in the repository
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: frontend
Related to the Nuxt frontend
When using Pinia outside of the components, as in the store tests, we need to use
setActivePinia(createPinia())
to prevent the following error:I'm unclear of when it's necessary to use
setActivePinia
. Could you add a blurb in the TESTING_GUIDELINES explaining that (or else open an issue to do it in a separate PR)?Originally posted by @sarayourfriend in WordPress/openverse-frontend#1040 (comment)
The text was updated successfully, but these errors were encountered: