test: fix latest tsgo inference regressions in test suites

This commit is contained in:
Brian Mendonca
2026-02-21 15:30:12 -07:00
committed by Peter Steinberger
parent d12817994f
commit a186036814
5 changed files with 21 additions and 13 deletions

View File

@@ -480,7 +480,14 @@ describe("buildOutboundResultEnvelope", () => {
},
];
for (const testCase of cases) {
expect(buildOutboundResultEnvelope(testCase.input), testCase.name).toEqual(testCase.expected);
const input: Parameters<typeof buildOutboundResultEnvelope>[0] =
"payloads" in testCase.input
? {
...testCase.input,
payloads: testCase.input.payloads?.map((payload) => ({ ...payload })),
}
: testCase.input;
expect(buildOutboundResultEnvelope(input), testCase.name).toEqual(testCase.expected);
}
});
});