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

Function createMultiNotebookFile

packages/cli/src/commands/split.test.ts:11–35  ·  view source on GitHub ↗
(notebookNames: string[])

Source from the content-addressed store, hash-verified

9import { createSplitAction } from './split'
10
11function 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
37describe('split command', () => {
38 let tempDir: string

Callers 1

split.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected