From a1faeff6481d04c985af27604433cb88d704bd05 Mon Sep 17 00:00:00 2001 From: mai Date: Fri, 24 Jan 2025 19:49:34 -0500 Subject: [PATCH] minor fix --- backend/src/tests/helpers/test-app.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/tests/helpers/test-app.ts b/backend/src/tests/helpers/test-app.ts index 86d4550..3ea5b11 100644 --- a/backend/src/tests/helpers/test-app.ts +++ b/backend/src/tests/helpers/test-app.ts @@ -6,12 +6,15 @@ import { setUpRoutes } from "../../routes/init"; import { automigrateDB } from "../../database/migrate"; import { resetDB } from "../../database/reset"; import { seedDatabase } from "./seed-db"; +import S3Impl from "../../services/s3Service"; export const startTestApp = async (): Promise => { const app = new Hono(); const config = getConfigurations(); + const s3 = new S3Impl(config.s3Config); + const db = connectDB(config); await automigrateDB(db, config); @@ -22,7 +25,7 @@ export const startTestApp = async (): Promise => { configureMiddlewares(app, config); - setUpRoutes(app, db); + setUpRoutes(app, db, s3); return app; };