test: add mock for patch table in application.real.test.ts

- Introduced a mock for the patch table to simulate findMany behavior in application.real.test.ts, enhancing test coverage.
This commit is contained in:
Mauricio Siu
2026-02-18 14:54:17 -06:00
parent 97f9e8ad25
commit 3439b758df

View File

@@ -43,6 +43,9 @@ vi.mock("@dokploy/server/db", () => {
applications: {
findFirst: vi.fn(),
},
patch: {
findMany: vi.fn().mockResolvedValue([]),
},
},
},
};