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

Function createBlocks

packages/reactivity/src/dag.test.ts:9–22  ·  view source on GitHub ↗
(
  blocks: {
    id: string
    type: string
    content: string
    metadata?: Record<string, unknown>
  }[]
)

Source from the content-addressed store, hash-verified

7const DATAFRAME_SQL_INTEGRATION_ID = 'dataframe-sql-integration'
8
9function createBlocks(
10 blocks: {
11 id: string
12 type: string
13 content: string
14 metadata?: Record<string, unknown>
15 }[]
16): DeepnoteBlock[] {
17 return blocks.map(block => ({
18 blockGroup: 'default',
19 sortingKey: '0',
20 ...block,
21 })) as DeepnoteBlock[]
22}
23
24describe('DAG', () => {
25 afterEach(() => {

Callers 1

dag.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected