From ec1c714fa346a25c2f9cb456e97cd0f2efb4f501 Mon Sep 17 00:00:00 2001 From: Brad Groux <3053586+BradGroux@users.noreply.github.com> Date: Sun, 30 Aug 2026 05:51:25 -0500 Subject: [PATCH] test: preserve lint warning budget --- .../__tests__/scheduler-automation-drafts.test.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/web/src/__tests__/scheduler-automation-drafts.test.tsx b/web/src/__tests__/scheduler-automation-drafts.test.tsx index 3a4585a4..4f783f5b 100644 --- a/web/src/__tests__/scheduler-automation-drafts.test.tsx +++ b/web/src/__tests__/scheduler-automation-drafts.test.tsx @@ -230,10 +230,10 @@ function activationPreviewFixture(draft: AutomationDraft) { retry: { maxAttempts: 2, backoffMinutes: 15 }, }, output: { destination: 'work-products/triage', expectedDeliverables: ['Triage report'] }, - standingScope: draft.standingScope.value!, - perRunBudget: draft.perRunBudget.value!, - aggregateBudget: draft.aggregateBudget.value!, - stopConditions: draft.stopConditions.value!, + standingScope: requiredValue(draft.standingScope.value), + perRunBudget: requiredValue(draft.perRunBudget.value), + aggregateBudget: requiredValue(draft.aggregateBudget.value), + stopConditions: requiredValue(draft.stopConditions.value), effectiveRunAccess: { reads: ['support-queue'], writes: ['work-products/triage'], @@ -276,6 +276,11 @@ function resolved(value: T) { }; } +function requiredValue(value: T | undefined): T { + if (value === undefined) throw new Error('Expected resolved fixture value.'); + return value; +} + function missing(explanation: string) { return { origin: 'unresolved' as const,