code: user,nextjs,frontends (1 files)

This commit is contained in:
2025-12-26 00:26:34 +00:00
parent f3cca0915b
commit 88d181db41

View File

@@ -1,10 +1,18 @@
import { describe, it, expect, vi, beforeEach } from 'vitest'
const mockList = vi.fn()
const mockFindFirst = vi.fn()
const mockAdapter = { list: mockList, findFirst: mockFindFirst }
const {
mockList,
mockFindFirst,
mockVerifyPassword,
mockAdapter,
} = vi.hoisted(() => {
const mockList = vi.fn()
const mockFindFirst = vi.fn()
const mockVerifyPassword = vi.fn()
const mockAdapter = { list: mockList, findFirst: mockFindFirst }
const mockVerifyPassword = vi.fn()
return { mockList, mockFindFirst, mockVerifyPassword, mockAdapter }
})
vi.mock('../dbal-client', () => ({
getAdapter: () => mockAdapter,