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

Function multiNotebookFile

packages/cli/src/commands/lint.test.ts:35–45  ·  view source on GitHub ↗

Minimal multi-notebook fixture; no initNotebookId so every notebook counts as non-init.

(names: string[])

Source from the content-addressed store, hash-verified

33
34/** Minimal multi-notebook fixture; no initNotebookId so every notebook counts as non-init. */
35function multiNotebookFile(names: string[]): DeepnoteFile {
36 return {
37 version: '1.0.0',
38 metadata: { createdAt: '2025-01-01T00:00:00Z' },
39 project: {
40 id: 'proj-lint',
41 name: 'Lint Fixture',
42 notebooks: names.map((name, i) => ({ id: `nb-${i}`, name, blocks: [] })),
43 },
44 }
45}
46
47/** Normalize the per-run temp dir (absolute and cwd-relative forms) so text snapshots are stable. */
48function withStableTmpPaths(text: string, tempDir: string): string {

Callers 1

writeFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected