mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-10-06 19:57:50 +00:00
test: preserve lint warning budget
This commit is contained in:
parent
00728911ed
commit
ec1c714fa3
1 changed files with 9 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue