Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
in-mai-space committed Jan 25, 2025
1 parent 883a381 commit a1faeff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/tests/helpers/test-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Hono> => {
const app = new Hono();

const config = getConfigurations();

const s3 = new S3Impl(config.s3Config);

const db = connectDB(config);

await automigrateDB(db, config);
Expand All @@ -22,7 +25,7 @@ export const startTestApp = async (): Promise<Hono> => {

configureMiddlewares(app, config);

setUpRoutes(app, db);
setUpRoutes(app, db, s3);

return app;
};

0 comments on commit a1faeff

Please # to comment.