| 9 | import { createSplitAction } from './split' |
| 10 | |
| 11 | function createMultiNotebookFile(notebookNames: string[]): DeepnoteFile { |
| 12 | return { |
| 13 | version: '1.0.0', |
| 14 | metadata: { createdAt: '2025-01-01T00:00:00Z' }, |
| 15 | project: { |
| 16 | id: '2e814690-4f02-465c-8848-5567ab9253b7', |
| 17 | name: 'Test Project', |
| 18 | settings: { requirements: ['pandas'] }, |
| 19 | notebooks: notebookNames.map((name, i) => ({ |
| 20 | id: `nb-${i + 1}`, |
| 21 | name, |
| 22 | blocks: [ |
| 23 | { |
| 24 | id: `block-${i + 1}`, |
| 25 | type: 'code' as const, |
| 26 | blockGroup: `bg-${i + 1}`, |
| 27 | sortingKey: `000${i}`, |
| 28 | content: `print("${name}")`, |
| 29 | metadata: {}, |
| 30 | }, |
| 31 | ], |
| 32 | })), |
| 33 | }, |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | describe('split command', () => { |
| 38 | let tempDir: string |