Using initialState on testing #1164
-
I have been using Pinia and loving it. I have encountered a problem that the docs don't help me to answer and I found very little on the internet: I am trying to simulate an Here is the component, which is a simple dropdown:
I am trying the following on testing and none of the expectations work:
Am I using the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The initialState is a state tree with keys of the ids of each store. In your case, it would be: const initialState = {
configuration: { baseYear: 2030 }
} Make sure to replace the |
Beta Was this translation helpful? Give feedback.
The initialState is a state tree with keys of the ids of each store. In your case, it would be:
Make sure to replace the
configuration
with your actual configuration storeid
.