Skip to content

Commit a2eefbe

Browse files
committed
fix(runtime): spread the frozen pending lists for arrayContaining (#8087)
TEST_DEBT is a shrink-only ratchet sitting exactly at its measurement, so the readonly-array argument was a real +1 that had to be fixed rather than banked. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y26DJEHSBhhAQ6wwfsHNza
1 parent 6d6f781 commit a2eefbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/runtime/src/error-envelope.conformance.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ describe('#8087 — every code the dispatcher door can emit is parsed against Ap
235235
// every per-code assertion below would vacuously pass and this suite
236236
// would go quiet exactly when it had the most to say.
237237
expect(PENDING_AT_DISPATCHER_DOOR.length).toBeGreaterThan(0);
238-
expect(PENDING_LEDGER_REGISTRATION).toEqual(expect.arrayContaining(PENDING_AT_DISPATCHER_DOOR));
238+
// Spread: both lists are `readonly string[]`, and `arrayContaining`
239+
// takes a mutable one — passing the frozen list straight in is a tsc
240+
// error that only the TEST_DEBT ratchet would have caught.
241+
expect(PENDING_LEDGER_REGISTRATION).toEqual(expect.arrayContaining([...PENDING_AT_DISPATCHER_DOOR]));
239242
});
240243

241244
for (const code of PENDING_AT_DISPATCHER_DOOR) {

0 commit comments

Comments
 (0)