You're probably writing a Laravel test for a Livewire component.
The docs don't seem to mention that you need to import a package at the top of your test file first, like this:
Now, you can use
Livewire::test in your tests!
Follow my twitter (@benborgers)
to see the work-in-progress of coding projects I’m working on!