mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-16 17:05:17 +00: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 = {
|
const chain: any = {
|
||||||
set: vi.fn(() => chain),
|
set: vi.fn(() => chain),
|
||||||
where: vi.fn(() => chain),
|
where: vi.fn(() => chain),
|
||||||
|
values: vi.fn(() => chain),
|
||||||
returning: vi.fn().mockResolvedValue([{}]),
|
returning: vi.fn().mockResolvedValue([{}]),
|
||||||
execute: vi.fn().mockResolvedValue([{}]),
|
execute: vi.fn().mockResolvedValue([{}]),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user