From 4e8c9771a8c9db8e4b7fecf51739ac4136f6b686 Mon Sep 17 00:00:00 2001 From: Krystof Date: Sun, 27 Oct 2024 01:58:59 +0200 Subject: [PATCH] chore(be): run imports before tests --- apps/backend/e2e/tests/import.e2e-spec.ts | 10 +++++++--- apps/backend/package.json | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/backend/e2e/tests/import.e2e-spec.ts b/apps/backend/e2e/tests/import.e2e-spec.ts index 8ff2aab..a7db4cb 100644 --- a/apps/backend/e2e/tests/import.e2e-spec.ts +++ b/apps/backend/e2e/tests/import.e2e-spec.ts @@ -29,7 +29,11 @@ describe("Import Module (e2e)", () => { await app.close(); }); - it("Run import", async () => { - await app.get(ImportService).syncStops(StopSyncTrigger.TEST); - }); + it( + "Run import", + async () => { + await app.get(ImportService).syncStops(StopSyncTrigger.TEST); + }, + 10 * 60 * 1_000, + ); }); diff --git a/apps/backend/package.json b/apps/backend/package.json index bb78aa1..3ee4827 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -15,6 +15,7 @@ "test:watch": "jest --watch", "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", + "pretest:e2e": "jest --config ./e2e/jest-e2e.json -t \"Run import\"", "test:e2e": "jest --config ./e2e/jest-e2e.json", "prisma:studio": "dotenv -e .env.local -- prisma studio", "prisma:generate": "prisma generate",