/** * WorkflowFunnelLoader Tests — Core Package * * Direct unit tests for the WorkflowFunnelLoader class. * * Tests verify: * - Constructor loads workflows.yaml from stateDir * - Missing file → empty funnels + warning * - Malformed YAML → preserves last known-good config + warning * - Invalid schema (missing version/funnels) → preserves last known-good + warning * - Invalid funnel entries (missing workflowId/stages) → skipped + warning * - getStages returns correct stages for known workflow * - getStages returns empty array for unknown workflow * - getFunnel returns full funnel with policy for known workflow * - getFunnel returns undefined for unknown workflow * - getFunnel returns deep clone (mutations don't affect internal state) * - getAllFunnels returns deep clone of all stages * - getAllFunnelsWithPolicy returns deep clone of all funnels * - watch() starts file watching, dispose() cleans up * - getWarnings returns warnings from last load * - getConfigPath returns correct path * * ERR checklist: * - ERR-002 / EP-03: malformed YAML preserves last known-good (fail-safe) * - ERR-007 / EP-02: single source for funnels table * - EP-07: deep clones prevent consumer mutation of internal state */ export {}; //# sourceMappingURL=workflow-funnel-loader.test.d.ts.map