diff --git a/backend/src/api-keys/repositories/api-keys.repository.spec.ts b/backend/src/api-keys/repositories/api-keys.repository.spec.ts index 12872d4..0cd9d04 100644 --- a/backend/src/api-keys/repositories/api-keys.repository.spec.ts +++ b/backend/src/api-keys/repositories/api-keys.repository.spec.ts @@ -19,11 +19,11 @@ describe("ApiKeysRepository", () => { execute: jest.fn(), }; - const wrapWithThen = (obj: any) => { + const wrapWithThen = (obj: unknown) => { // biome-ignore lint/suspicious/noThenProperty: Necessary to mock Drizzle's awaitable query builder Object.defineProperty(obj, "then", { - value: function (onFulfilled: any) { - const result = this.execute(); + value: function (onFulfilled: (arg0: unknown) => void) { + const result = (this as any).execute(); return Promise.resolve(result).then(onFulfilled); }, configurable: true,