Skip to content

Commit

Permalink
chore(resource): Added afterAll hook to e2e test template
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonb committed Jun 23, 2024
1 parent b8be77e commit 6c68348
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/resource/files/ts/__name__.e2e.__specFileSuffix__.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ describe('/v1/<%= dasherize(name) %>', () => {
);
});

afterAll(async () => {
await app.close();
});

beforeEach(async () => {
transactionalContext = new TransactionalTestContext(db);
await transactionalContext.start();
Expand Down
4 changes: 4 additions & 0 deletions src/lib/resource/resource.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ describe('/v1/users', () => {
);
});
afterAll(async () => {
await app.close();
});
beforeEach(async () => {
transactionalContext = new TransactionalTestContext(db);
await transactionalContext.start();
Expand Down

0 comments on commit 6c68348

Please sign in to comment.