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

Function makeEnvelope

apps/sim/stores/workflows/registry/store.test.ts:85–100  ·  view source on GitHub ↗
(overrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

83import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
84
85function makeEnvelope(overrides: Record<string, unknown> = {}) {
86 return {
87 id: 'wf-1',
88 isDeployed: true,
89 deployedAt: new Date('2026-01-01T00:00:00.000Z'),
90 isPublicApi: false,
91 state: {
92 blocks: { b1: { id: 'b1' } },
93 edges: [],
94 loops: {},
95 parallels: {},
96 },
97 variables: { v1: { id: 'v1', workflowId: 'wf-1', name: 'x' } },
98 ...overrides,
99 }
100}
101
102describe('registry store loadWorkflowState (collapsed cache)', () => {
103 beforeEach(() => {

Callers 1

store.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected