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

Function createBlock

apps/sim/lib/workflows/autolayout/targeted.test.ts:41–52  ·  view source on GitHub ↗
(id: string, overrides: Partial<BlockState> = {})

Source from the content-addressed store, hash-verified

39} as const
40
41function createBlock(id: string, overrides: Partial<BlockState> = {}): BlockState {
42 return {
43 id,
44 type: 'function',
45 name: id,
46 position: { x: 0, y: 0 },
47 subBlocks: {},
48 outputs: {},
49 enabled: true,
50 ...overrides,
51 }
52}
53
54function expectVerticalSeparation(upper: BlockState, lower: BlockState): void {
55 const upperMetrics = getBlockMetrics(upper)

Callers 2

createJiraBlockFunction · 0.70
targeted.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected