MCPcopy Index your code
hub / github.com/simstudioai/sim / blockWith

Function blockWith

apps/sim/lib/workspaces/fork/promote/cleared-refs.test.ts:33–34  ·  view source on GitHub ↗
(subBlocks: SubBlockConfig[])

Source from the content-addressed store, hash-verified

31import type { WorkflowState } from '@/stores/workflows/workflow/types'
32
33const blockWith = (subBlocks: SubBlockConfig[]): BlockConfig =>
34 ({ name: 'Test', description: '', subBlocks, outputs: {} }) as unknown as BlockConfig
35
36// No persisted block map, so the resolver derives - matching the deriveForkBlockId expectations.
37const resolveBlockId = buildForkBlockIdResolver(true, EMPTY_FORK_BLOCK_MAP)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected