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

Function createSource

packages/convert/src/snapshot/merge.test.ts:6–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5describe('mergeSnapshotIntoSource', () => {
6 const createSource = (): DeepnoteFile => ({
7 version: '1.0.0',
8 metadata: { createdAt: '2025-01-01T00:00:00Z' },
9 project: {
10 id: 'proj-123',
11 name: 'Test Project',
12 notebooks: [
13 {
14 id: 'nb-1',
15 name: 'Notebook',
16 blocks: [
17 {
18 id: 'block-1',
19 type: 'code',
20 blockGroup: 'bg-1',
21 sortingKey: '0000',
22 content: 'print("hello")',
23 contentHash: 'sha256:abc123',
24 metadata: {},
25 },
26 {
27 id: 'block-2',
28 type: 'markdown',
29 blockGroup: 'bg-2',
30 sortingKey: '0001',
31 content: '# Hello',
32 metadata: {},
33 },
34 ],
35 },
36 ],
37 },
38 })
39
40 const createSnapshot = (): DeepnoteSnapshot => ({
41 version: '1.0.0',

Callers 1

merge.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected