What seems to be the problem:
Test passed even though the component was missing parameter passed into mount()
. You must pass the parameter in the test for it not to break the test…
Steps to Reproduce:
If you have the following in a blade template…
@livewire('my-component', ['my_parameter' => $my_parameter])
Don’t pass my_parameter
…
@livewire('my-component')
Tests will pass, but the code will break.
Are you using the latest version of Livewire:
Yes
Any suggestion to test for this. I stumped myself for an hour, doh!