MCPcopy Index your code
hub / github.com/deepnote/deepnote / createTestDeepnoteFile

Function createTestDeepnoteFile

packages/cli/src/commands/convert.test.ts:400–419  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

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"
403project:
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: {}
416version: "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)

Callers 1

convert.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected