MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / createMockOutput

Function createMockOutput

src/notebooks/deepnote/deepnoteTestHelpers.ts:60–68  ·  view source on GitHub ↗
(options?: CreateMockOutputOptions)

Source from the content-addressed store, hash-verified

58 * @returns A mock NotebookCellOutput
59 */
60export function createMockOutput(options?: CreateMockOutputOptions): NotebookCellOutput {
61 const { mime = 'text/plain', data = new Uint8Array(), metadata = undefined } = options ?? {};
62
63 return {
64 id: generateUuid(),
65 items: [{ mime, data }],
66 metadata
67 } as NotebookCellOutput;
68}
69
70/**
71 * Creates a mock NotebookCell for testing.

Calls 1

generateUuidFunction · 0.90

Tested by

no test coverage detected