Files

17 lines
344 B
TypeScript
Raw Permalink Normal View History

import type { PendingEffect } from '../../src/generated/scenarios.js';
export function effect(
type: string,
data: Record<string, unknown> = {},
overrides: Partial<PendingEffect> = {},
): PendingEffect {
return {
runId: 'run-1',
scenarioSlug: 'scenario-1',
nodeId: `${type}-1`,
type,
data,
...overrides,
};
2026-08-12 14:02:25 +03:00
}