(name: string)
| 32 | }; |
| 33 | |
| 34 | const 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 | |
| 48 | describe("runCodeMigrations", () => { |
| 49 | it.effect("runs pending migrations and stamps them", () => |
no test coverage detected