Skip to content

Commit

Permalink
chore(be): run imports before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Oct 27, 2024
1 parent 6f06d19 commit 4e8c977
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/backend/e2e/tests/import.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
});
1 change: 1 addition & 0 deletions apps/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4e8c977

Please sign in to comment.