feat: truncate all tables before each e2e test for clean isolation

This commit is contained in:
kolaente 2026-04-03 20:51:08 +02:00 committed by kolaente
parent f477da48ec
commit 2ee8ad4109
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export const test = base.extend<{
},
currentUser: async ({apiContext}, use) => {
await Factory.truncateAll()
const user = await createFakeUser()
await use(user)
},