Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Furrukh's avatar

How Do I use Jest in a inertia React app

I am learning the Laravel React Inertia Stack, I got Jest working in the app following the instructions here https://zaferayan.medium.com/how-to-setup-jest-and-react-testing-library-in-vite-project-2600f2d04bdd

But I am unable to test components seperately, how do I pass and get the props in components like route which are available to React components via inertia

0 likes
0 replies

Please or to participate in this conversation.