Skip to content

Commit 6c38045

Browse files
committed
fix: add type annotations to auth test mocks for Jest 30 compatibility
1 parent e15fbd7 commit 6c38045

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/__tests__/auth.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ import { describe, it, expect, beforeEach, jest } from "@jest/globals";
77
import { db } from "../db";
88
import { users } from "../db/schema";
99
import { eq } from "drizzle-orm";
10-
import { cleanupDatabase, countRows } from "./helpers/testDb";
10+
import { cleanupDatabase } from "./helpers/testDb";
1111

1212
// Mock Clerk SDK
13-
const mockGetUser = jest.fn();
14-
const mockVerifyToken = jest.fn();
13+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
14+
const mockGetUser = jest.fn<any, any>();
15+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
16+
const mockVerifyToken = jest.fn<any, any>();
1517

1618
jest.mock("@clerk/backend", () => ({
1719
verifyToken: (...args: unknown[]) => mockVerifyToken(...args),

0 commit comments

Comments
 (0)