Testing pinia store actions with async/await calls #2240
Unanswered
Nallamachu
asked this question in
Help and Questions
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.
-
What problem is this solving
In my project we are using PINIA for state and store management with the other technologies like Vue3+Vuetify3+Vite technologies.
We have done the API integration through PINIA actions with async/await calls. We are struggling to write test cases for the same PINIA action functions. Jest 29 is the testing library which we have included in our project.
I was also gone through the [PINIA testing documentation] (https://pinia.vuejs.org/cookbook/testing.html#testing-stores) but could not find the exact use case of what we need. So, I would like to request to include the possibility of writing test cases for PINIA store actions with async/await support.
Proposed solution
Third party API testing through PINIA store actions. As of now, I don't have any proposed solutions for the same. I am seeking for help.
Describe alternatives you've considered
No response
Beta Was this translation helpful? Give feedback.
All reactions