From 8b2728dc5aee0f36c7990d16b229ccb8fc6aafb4 Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Tue, 20 Jan 2026 09:57:27 +0100 Subject: [PATCH] test(s3): update mock implementation types for stricter type safety Refactor mock implementations in S3 service tests to replace `any` with `unknown` for improved type safety and consistency. --- backend/src/s3/s3.service.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/s3/s3.service.spec.ts b/backend/src/s3/s3.service.spec.ts index 5e9cdcc..be3281f 100644 --- a/backend/src/s3/s3.service.spec.ts +++ b/backend/src/s3/s3.service.spec.ts @@ -197,7 +197,7 @@ describe("S3Service", () => { it("should use DOMAIN_NAME and PORT for localhost", () => { (configService.get as jest.Mock).mockImplementation( - (key: string, def: any) => { + (key: string, def: unknown) => { if (key === "API_URL") return null; if (key === "DOMAIN_NAME") return "localhost"; if (key === "PORT") return 3000; @@ -210,7 +210,7 @@ describe("S3Service", () => { it("should use api.DOMAIN_NAME for production", () => { (configService.get as jest.Mock).mockImplementation( - (key: string, def: any) => { + (key: string, def: unknown) => { if (key === "API_URL") return null; if (key === "DOMAIN_NAME") return "memegoat.fr"; return def;