From a5a8626f5d233faba11dd5bbf3d030a76d020836 Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Thu, 8 Jan 2026 17:15:25 +0100 Subject: [PATCH] chore: add TODO comment in contents service test regarding TS2774 warning --- backend/src/contents/contents.service.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/contents/contents.service.spec.ts b/backend/src/contents/contents.service.spec.ts index a49f52c..ebcdff1 100644 --- a/backend/src/contents/contents.service.spec.ts +++ b/backend/src/contents/contents.service.spec.ts @@ -72,6 +72,8 @@ describe("ContentsService", () => { }; for (const mock of Object.values(chain)) { + + //TODO Fix : TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead? if (mock.mockReturnValue) { mock.mockImplementation(mockImplementation); }