MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / migrationSpy

Function migrationSpy

apps/cloud/src/db/code-migration-runner.test.ts:34–46  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

32};
33
34const migrationSpy = (name: string): { migration: CodeMigration; calls: boolean[] } => {
35 const calls: boolean[] = [];
36 return {
37 calls,
38 migration: {
39 name,
40 run: async ({ dryRun }) => {
41 calls.push(dryRun);
42 return { summary: `${name} done` };
43 },
44 },
45 };
46};
47
48describe("runCodeMigrations", () => {
49 it.effect("runs pending migrations and stamps them", () =>

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected