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

Function createWrapper

packages/agentflow/src/useAgentflow.test.tsx:14–19  ·  view source on GitHub ↗
(initialFlow?: FlowData)

Source from the content-addressed store, hash-verified

12const makeEdge = makeFlowEdge
13
14const createWrapper = (initialFlow?: FlowData) => {
15 function Wrapper({ children }: { children: ReactNode }) {
16 return <AgentflowStateProvider initialFlow={initialFlow}>{children}</AgentflowStateProvider>
17 }
18 return Wrapper
19}
20
21describe('useAgentflow', () => {
22 describe('getFlow', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected