Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(db): give the stand-in migration storage the master transaction calls

Maurice73f3aa830900
diff --git a/server/tests/helpers/fake-postgres-move.ts b/server/tests/helpers/fake-postgres-move.ts
index 3c0d45a6c..62c43ecab 100644
--- a/server/tests/helpers/fake-postgres-move.ts
+++ b/server/tests/helpers/fake-postgres-move.ts
@@ -246,6 +246,8 @@ export function fakeMoveOrm(pg: FakePostgres, options: { pending?: string[]; kno
const migrator = {
getStorage: () => ({
ensureTable: vi.fn(async () => undefined),
+ setMasterMigration: vi.fn(),
+ unsetMasterMigration: vi.fn(),
logMigration: vi.fn(async ({ name }: { name: string }) => {
executed.push(name);
}),