()
| 37 | const { listRuns } = await import("./store.js"); |
| 38 | |
| 39 | function lastSelect(): ExecCall { |
| 40 | const selects = execCalls.filter((c) => /^\s*SELECT\b/i.test(c.sql)); |
| 41 | if (selects.length === 0) throw new Error("no SELECT was executed"); |
| 42 | return selects[selects.length - 1]; |
| 43 | } |
| 44 | |
| 45 | describe("progress store", () => { |
| 46 | beforeEach(() => { |