Skip to content

Commit

Permalink
test: add afterAll hook for cleaning up test context
Browse files Browse the repository at this point in the history
  • Loading branch information
typeWolffo committed Aug 9, 2024
1 parent 27a5ec2 commit 024c784
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/api/src/auth/__tests__/auth.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ describe("AuthService", () => {
emailAdapter.clearEmails();
});

afterAll(async () => {
await testContext.teardown();
});

describe("register", () => {
it("should register a new user successfully", async () => {
const user = userFactory.build();
Expand Down

0 comments on commit 024c784

Please sign in to comment.