From 9ab0f951a5b5990c266ef4456610e0a0775aa334 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 2 Nov 2026 19:56:58 -0600 Subject: [PATCH] test(evals): retain readonly company deadline typing Set synthetic invalid context values without assigning to the readonly production contract. Runtime observer behavior is unchanged. Co-Authored-By: Paperclip --- .../chat-catalog-domains/identity-company-observer.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runner-e2e/chat-catalog-domains/identity-company-observer.test.ts b/tests/runner-e2e/chat-catalog-domains/identity-company-observer.test.ts index d90273f4a3d..0e7cc904d80 100644 --- a/tests/runner-e2e/chat-catalog-domains/identity-company-observer.test.ts +++ b/tests/runner-e2e/chat-catalog-domains/identity-company-observer.test.ts @@ -29,7 +29,7 @@ it.each([1, 2, 3])("does not reset the original deadline for late turn %s", asyn expect(f.ctx.observationDeadlineAt).toBe(start + 10_000); }); it.each([undefined, NaN, Infinity, start, start - 1])("rejects missing, invalid or exhausted original deadline %s before observing", async deadline => { - const f = fixture(); f.ctx.observationDeadlineAt = deadline; + const f = fixture(); Object.assign(f.ctx, { observationDeadlineAt: deadline }); await expect(waitForCompanySettingsTurn(f.ctx)).rejects.toThrow(/Original identity observation budget/); expect(f.refreshIssue).not.toHaveBeenCalled(); });