Developing With Turbo Tests

Tests Turbo Laravel features in PHPUnit or Pest. Activates when using the InteractsWithTurbo trait; simulating requests with $this->turbo(), $this->fromTurboFrame(), or $this->hotwireNative(); asserting responses with assertTurboStream(), assertNotTurboStream(), assertRedirectRecede(), assertRedirectResume(), or assertRedirectRefresh(); faking broadcasts with TurboStream::fake(), assertBroadcasted(), assertNothingWasBroadcasted(), or assertBroadcastedTimes(); writing feature tests for Turbo Stream responses; or when the user mentions testing Turbo, testing broadcasts, or Turbo test assertions.

hotwired-laravel 8bdb834 5.7 KB Updated

File contents

hotwired-laravel/turbo-laravel/tree/main/resources/boost/skills/developing-with-turbo-tests commit 8bdb834629

Frequently asked questions

npx skillmds@latest add hotwired-laravel/developing-with-turbo-tests