
This is a silly one.
I wanted to run Laravel in dev mode but using the compiled js and scss from npm run build
via vitejs.
This usually works
but for some reason Laravel was trying to serve js/css from http://localhost:5173/@vite/client
a service I usually run - but I wanted to test the build stuff.
The solution is really simple but not well documented.
Read more ...I have a Laravel project using vite InertiaJS and React
A unit test calling the Head module from @inertiajs/react
Was triggering this error
Cannot read properties of undefined (reading 'createProvider')
For this test I don’t really care about the Head module - but didn’t want to try and mock the whole of inertia-react
Read more ...For some reason I always seem to struggle getting code coverage reports picked up by SonarQube - the documentation isn’t bad but it seems to take me a while to find the right incantation .
I wanted both my PhpUnit tests and Javascript unit tests for my laravel project to generate coverage reports and import this to SonarQube.
Read more ...
I am working on a project that makes use React within Laravel.
I didn’t find much support for setting up React tests.
So here are som notes on how I got it working.
Read more ...