fix: resolve TypeScript errors in test setup

This commit is contained in:
root 2026-03-20 23:17:56 +00:00
parent f74d60c26b
commit 84664138ad

View File

@ -125,7 +125,7 @@ function addIncludes(item: any, include: any): any {
}
// Build mock Prisma client
const mockPrismaClient = {
const mockPrismaClient: any = {
user: {
findUnique: jest.fn(async ({ where, include }: any) => {
const user = findInArray(mockUsers, where);
@ -280,7 +280,7 @@ const mockPrismaClient = {
return cat;
}),
},
$transaction: jest.fn(async (operations: any) => {
$transaction: jest.fn(async (operations: any): Promise<any> => {
if (Array.isArray(operations)) {
return Promise.all(operations);
}