Checking Out Laravel Dusk

Was trying to figure out why should I use Dusk over PHPunit where Dusk also uses PHPunit for test, so I found out that the different between PHPunit and Dusk is that when your application uses Javascript, those javascript aren’t being tested because isn’t a browser, but with Dusk it will be tested to…

composer require laravel/dusk --dev
// AppServiceProvider
use Laravel\Dusk\DuskServiceProvider;
public function register()
if ($this->app->environment('local', 'testing')) {

Then install vendor

php artisan dusk:install

try to run it

php artisan dusk

If it works then start your magic

More info