feat: truncate all tables before each e2e test for clean isolation
This commit is contained in:
parent
f477da48ec
commit
2ee8ad4109
|
|
@ -20,6 +20,7 @@ export const test = base.extend<{
|
|||
},
|
||||
|
||||
currentUser: async ({apiContext}, use) => {
|
||||
await Factory.truncateAll()
|
||||
const user = await createFakeUser()
|
||||
await use(user)
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue