Skip to content

Commit

Permalink
Cleanup and teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Nov 8, 2023
1 parent e1126e0 commit 01f9b20
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Db, IUnleashConfig, IUser } from 'lib/server-impl';
import { IUser } from 'lib/server-impl';
import {
IUnleashTest,
setupAppWithCustomConfig,
Expand Down Expand Up @@ -40,6 +40,11 @@ beforeAll(async () => {
});
});

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

afterEach(async () => {
await db.rawDatabase.table('change_requests').where('id', CR_ID).delete();
await db.rawDatabase
Expand Down

0 comments on commit 01f9b20

Please sign in to comment.