mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-19 22:25:22 +02:00
feat(tests): add values method to mock database for enhanced testing
- Introduced a mock implementation for the `values` method in the mock database setup. - This addition improves the test environment by allowing more comprehensive simulation of database interactions.
This commit is contained in:
@@ -16,6 +16,7 @@ vi.mock("@dokploy/server/db", () => {
|
||||
const chain: any = {
|
||||
set: vi.fn(() => chain),
|
||||
where: vi.fn(() => chain),
|
||||
values: vi.fn(() => chain),
|
||||
returning: vi.fn().mockResolvedValue([{}]),
|
||||
execute: vi.fn().mockResolvedValue([{}]),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user