Adding values to a setup store in a unit test #1610
-
Hi, I'm looking to add values to a unit tested pinia store when I'm testing my component. Is there an easy way to do this? My store looks like this:
And in my tests I am trying to do something like this:
What am I missing to be able to get this value to be set in my store? Right now, my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It should be a ref instead if you want to be able to change it. You could directly use Const messages = ref([]) |
Beta Was this translation helpful? Give feedback.
It should be a ref instead if you want to be able to change it. You could directly use