| 398 | |
| 399 | describe('converting Deepnote to other formats', () => { |
| 400 | const createTestDeepnoteFile = async (filePath: string): Promise<void> => { |
| 401 | const content = `metadata: |
| 402 | createdAt: "2025-01-01T00:00:00Z" |
| 403 | project: |
| 404 | id: test-id |
| 405 | name: Test Project |
| 406 | notebooks: |
| 407 | - id: notebook-1 |
| 408 | name: Test Notebook |
| 409 | blocks: |
| 410 | - id: block-1 |
| 411 | type: code |
| 412 | content: "print('hello')" |
| 413 | blockGroup: group-1 |
| 414 | sortingKey: a0 |
| 415 | metadata: {} |
| 416 | version: "1.0.0" |
| 417 | ` |
| 418 | await fs.writeFile(filePath, content, 'utf-8') |
| 419 | } |
| 420 | |
| 421 | it('converts Deepnote to Jupyter (default)', async () => { |
| 422 | const action = createConvertAction(program) |