feat(tests): enhance mock database with member methods for testing

- Added mock implementations for `member.findFirst` and `member.findMany` methods in the mock database setup.
- This enhancement improves the test environment by allowing more comprehensive simulation of member-related database interactions.
This commit is contained in:
Mauricio Siu
2026-02-05 00:59:07 -06:00
parent 542ccc4479
commit 99646f887b

View File

@@ -55,6 +55,10 @@ vi.mock("@dokploy/server/db", () => {
findFirst: vi.fn().mockResolvedValue(null),
findMany: vi.fn().mockResolvedValue([]),
},
member: {
findFirst: vi.fn(),
findMany: vi.fn(),
},
},
},
dbUrl: "postgres://mock:mock@localhost:5432/mock",