-
Hi Folks 👋 I am a newbie trying to get my first tests working for VueJS. Sorry, I tried my best Googling and reading the docs but could not figure this out. I have the following component and test that calls out to a Pinia store. I am trying to verify that the store method is called with the proper arguments. Try as I may, I cannot figure out why the Test Failure Message:
Any ideas on where I goofed? Thank you for your time 🙏 Demo App & Tests that reproduces the error: https://stackblitz.com/edit/vitejs-vite-38qokp?file=src/components/greeting/CreateGreeting.vue Component:
Test:
Store:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @zhao-li |
Beta Was this translation helpful? Give feedback.
-
What happens if you not clear the message with |
Beta Was this translation helpful? Give feedback.
Hi @zhao-li
Can you make an online repro using https://stackblitz.com/edit/vitest-dev-vitest-fum9v4?initialPath=__vitest__ ?
It's easier for us to take a look.