MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / makeNode

Function makeNode

packages/agentflow/src/core/utils/flowExport.test.ts:7–8  ·  view source on GitHub ↗
(id: string, overrides?: Partial<FlowNode>)

Source from the content-addressed store, hash-verified

5import { generateExportFlowData } from './flowExport'
6
7const makeNode = (id: string, overrides?: Partial<FlowNode>) =>
8 makeFlowNode(id, { selected: true, data: { id, name: 'testNode', label: 'Test' }, ...overrides })
9
10const makeEdge = (source: string, target: string, overrides?: Partial<FlowEdge>) =>
11 makeFlowEdge(source, target, { selected: true, ...overrides })

Callers 1

flowExport.test.tsFile · 0.70

Calls 1

makeFlowNodeFunction · 0.90

Tested by

no test coverage detected