mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 16:42:27 +00:00
feat(cloud): default distributed plans to v2 (#3311)
* feat(cloud): default distributed plans to v2 * fix(cloud): address plan v2 review feedback * fix(examples): document explicit v2 samples
This commit is contained in:
@@ -151,6 +151,18 @@ describe("HyperframesRenderStack — snapshot", () => {
|
||||
expect(actualStates.sort()).toEqual([...EXPECTED_STATE_NAMES].sort());
|
||||
});
|
||||
|
||||
it("defaults omitted plan protocol to v2 and preserves the explicit v1 branch", () => {
|
||||
for (const definition of [SYNTHED.definition, readSamDefinition()]) {
|
||||
const selection = requireRecord(
|
||||
definition.States.SelectPlanProtocol,
|
||||
"SelectPlanProtocol state",
|
||||
);
|
||||
expect(selection.Default).toBe("PlanV2");
|
||||
expect(JSON.stringify(selection)).toContain('"StringEquals":"v1"');
|
||||
expect(JSON.stringify(definition.States.Plan)).toContain('"PlanProtocol":"v1"');
|
||||
}
|
||||
});
|
||||
|
||||
it("preserves every typed non-retryable error name across the three Lambda tasks", () => {
|
||||
const { definition } = SYNTHED;
|
||||
const collected = new Set<string>();
|
||||
|
||||
Reference in New Issue
Block a user