Skip to content

Commit f401351

Browse files
committed
test(lint): the shipped-predicate literal census counts the currency formula's Currency Config gate (62 -> 64)
Claude-Session: https://claude.ai/code/session_016njDy8ozy9B9Ns5Y8kAWEK Co-authored-by: Claude <noreply@anthropic.com>
1 parent 40693a3 commit f401351

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/lint/src/validate-predicate-path-refs.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,10 @@ describe('#7010 corpus — shipped METADATA_FORM_REGISTRY', () => {
771771
// It is 62 today: #21863's two new predicates each hold two single-quoted
772772
// literal comparisons, `data.type == 'api'` and `data.type == 'script'`,
773773
// on `action :: outcomeMessages` and on `action :: onSuccess`.
774-
expect(comparisons, 'no shipped predicate carries an `==`/`!=` literal comparison').toBe(62);
774+
// It is 64 today: #22727's `field :: currencyConfig` gate also opens for a
775+
// currency formula, `data.type == 'formula' && data.returnType == 'currency'`,
776+
// two more single-quoted literal comparisons.
777+
expect(comparisons, 'no shipped predicate carries an `==`/`!=` literal comparison').toBe(64);
775778

776779
const rhsFindings = validatePredicatePathRefs(corrupted)
777780
.filter((f) => f.rule === PREDICATE_RHS_PATH_SHAPED);

0 commit comments

Comments
 (0)