Skip to content

Commit

Permalink
Clean mailhog between tests
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Jan 10, 2025
1 parent c25c8a3 commit db47e68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ export const test = base.extend<{}, Services>({
{ scope: "worker" },
],

context: async ({ logger, context, request, homeserver }, use, testInfo) => {
context: async ({ logger, context, request, homeserver, mailhogClient }, use, testInfo) => {
homeserver.setRequest(request);
await logger.testStarted(testInfo);
await use(context);
await logger.testFinished(testInfo);
await homeserver.onTestFinished(testInfo);
await mailhogClient.deleteAll();
},
});

0 comments on commit db47e68

Please sign in to comment.