Skip to content

Commit

Permalink
chore(be): fix tests after each
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Oct 20, 2024
1 parent 46c0cfe commit 90b9082
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/backend/e2e/tests/departure.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { PrismaModule } from "src/modules/prisma/prisma.module";

describe("Departure Module (e2e)", () => {
let app: INestApplication;
beforeEach(async () => {
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [
CacheModule.register(cacheModuleConfig),
Expand All @@ -27,7 +27,7 @@ describe("Departure Module (e2e)", () => {
await app.init();
});

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

Expand Down
4 changes: 2 additions & 2 deletions apps/backend/e2e/tests/platform.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {

describe("Platform Module (e2e)", () => {
let app: INestApplication;
beforeEach(async () => {
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [
CacheModule.register(cacheModuleConfig),
Expand All @@ -31,7 +31,7 @@ describe("Platform Module (e2e)", () => {
await app.init();
});

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

Expand Down
4 changes: 2 additions & 2 deletions apps/backend/e2e/tests/stop.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { StopModule } from "src/modules/stop/stop.module";

describe("Stop Module (e2e)", () => {
let app: INestApplication;
beforeEach(async () => {
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [
CacheModule.register(cacheModuleConfig),
Expand All @@ -27,7 +27,7 @@ describe("Stop Module (e2e)", () => {
await app.init();
});

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

Expand Down

0 comments on commit 90b9082

Please sign in to comment.