How to test Inertia JS using PHPUnit and Laravel 9

preview_player
Показать описание
In this video, I will be showing you how to create functional tests for your Inertia JS application using PHPUnit and Laravel 9. We will test the full registration process with validation and automatic login after registration.

How to create a registration form using React JS, TypeScript, Inertia JS, and Laravel 9

How to create React JS pages and use Laravel 9 routing with Inertia JS and TypeScript

How to install Laravel 9, React JS, Inertia JS, and TypeScript:

Click here to subscribe

Reddit

Medium

Facebook

Twitter

LinkedIn

Github

#laravel #laraveltips #phpunit #php
Рекомендации по теме
Комментарии
Автор

Perfect timing! I was just having problems with testing not returing the expected HTML content, now I know it's Inertia.. thanks a lot!

faycalfaycal
Автор

I was looking at testing my React with the RILT stack. Does this mean I don't need to use libraries like React Testing Library? And with my PHP code I am using Pest to test.

isaachatilima
Автор

Thanks for the content. But I am getting an error as "Not a valid Inertia response." Even though my controller is returning Inertia::render do you know why?

NishaSharma-ivdk
Автор

followingRedirects() does not exist. is an error i am getting. Do you know why?

frankstekelenburg