Laravel - Browser Tests - Migrations
Most of the tests you write will interact with pages that retrieve data from your application's database; however, your Dusk tests should never use the
RefreshDatabase trait leverages database transactions which will not be applicable or available across HTTP requests. Instead, use the
DatabaseMigrations trait, which re-migrates the database for each test:
SQLite in-memory databases may not be used when executing Dusk tests. Since the browser executes within its own process, it will not be able to access the in-memory databases of other processes.