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:
Mauricio Siu
2026-02-04 23:33:10 -06:00
parent cfb9534e06
commit 8001e5d24a

View File

@@ -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([{}]),
};