Skip to content

Commit

Permalink
avoid double deletion of data
Browse files Browse the repository at this point in the history
causes unnecessary load on DB and CI
  • Loading branch information
WhyAsh5114 committed Dec 28, 2023
1 parent f67e9d3 commit 45d7aa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ export const test = baseTest.extend<

autoTestFixture: [
async ({ userAndSession }, use) => {
// Clear user data for each test, before AND after
// Clear user data for each test, once before each test should be enough
await deleteUserData(userAndSession.user);
await use("autoTestFixture");
await deleteUserData(userAndSession.user);
},
{ scope: "test", auto: true }
]
Expand Down

0 comments on commit 45d7aa3

Please sign in to comment.