Minimal multi-notebook fixture; no initNotebookId so every notebook counts as non-init.
(names: string[])
| 33 | |
| 34 | /** Minimal multi-notebook fixture; no initNotebookId so every notebook counts as non-init. */ |
| 35 | function multiNotebookFile(names: string[]): DeepnoteFile { |
| 36 | return { |
| 37 | version: '1.0.0', |
| 38 | metadata: { createdAt: '2025-01-01T00:00:00Z' }, |
| 39 | project: { |
| 40 | id: 'proj-lint', |
| 41 | name: 'Lint Fixture', |
| 42 | notebooks: names.map((name, i) => ({ id: `nb-${i}`, name, blocks: [] })), |
| 43 | }, |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /** Normalize the per-run temp dir (absolute and cwd-relative forms) so text snapshots are stable. */ |
| 48 | function withStableTmpPaths(text: string, tempDir: string): string { |