-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mountSuspended & createTestingPinia #737
Comments
Fun fact. If you replace the |
I think your issue is linked to the one I opened on |
Have you found a solution? Happens to me with await RenderSuspended. But if your method is mountSuspended insead of await mountSuspended you get correctly the initial state. But tests will fail as you need the await. For example if I have this customRender function for my tests
This won´t work
And this will work:
|
issue was fixed downstream in |
@lucasecdb not fixed: vuejs/pinia#2555 (comment) |
Environment
Reproduction
Minimal reproduction
Describe the bug
Hi all! Do I understand correctly that on the current version of
@nuxt/test-utils
there is no way to pre-fill a store using this instruction from the Pinia documentation.The component is also rendered, receiving default data from the store. In turn, I expect replacement data in the store.
I tried to look for information about a similar case in local chats and here in different threads, but I just didn’t receive any information. Several users have raised a similar issue.
It seems like
@pinia/nuxt
&@nuxt/test-utils
are not fully compatible, namely thecreateTestingPinia
&mountSuspended
methods.Please tell me, someone was able to solve the problem of how to create a test instance of Pinia.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: