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

Function makeContext

apps/sim/lib/workspace-events/rules.test.ts:28–40  ·  view source on GitHub ↗
(overrides: Partial<ExecutionEventContext> = {})

Source from the content-addressed store, hash-verified

26}
27
28function makeContext(overrides: Partial<ExecutionEventContext> = {}): ExecutionEventContext {
29 return {
30 workflowId: 'wf-source',
31 executionId: 'exec-1',
32 status: 'error',
33 trigger: 'manual',
34 durationMs: 1000,
35 cost: 0.25,
36 errorMessage: 'boom',
37 finalOutput: null,
38 ...overrides,
39 }
40}
41
42describe('excludeSimExecutionsCondition', () => {
43 it('excludes sim-triggered executions from rule statistics', () => {

Callers 1

rules.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected