How to register Inertia 1.x as a plugin during tests (Jest or Vitest)? #1683
Unanswered
deleugpn
asked this question in
Help (Vue)
Replies: 1 comment 4 replies
-
Have you found a solution to this? Amazing how it's been 5 months and nothing from the developers. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm getting the following error:
This started happening because I put
<Head>
on my Vue component:This is my test:
Most content that I found online refers to Inertia 0.x, where it was possible to do:
But as we can see on the upgrade guide, this is now gone: https://inertiajs.com/upgrade-guide#renamed-imports
So, to my original question: how can I register inertia as a plugin the same way I register
pinia
orfont-awesome
in Vitest/Jest in Inertia 1.x?Beta Was this translation helpful? Give feedback.
All reactions