test: preserve lint warning budget

This commit is contained in:
Brad Groux 2026-08-30 05:51:25 -05:00
parent 00728911ed
commit ec1c714fa3

View file

@ -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<T>(value: T) {
};
}
function requiredValue<T>(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,