@@ -74,7 +74,7 @@ describe('ComparisonOperatorSchema', () => {
7474 // rather than an ISO refinement.
7575 // ==========================================================================
7676
77- describe ( 'string comparands (#5685) ' , ( ) => {
77+ describe ( 'string comparands — the ordering slots take a string, which is what the date macros emit ' , ( ) => {
7878 const OPS = [ '$gt' , '$gte' , '$lt' , '$lte' ] as const ;
7979
8080 /** `resolveFilterTokens` returns `asYmd(...)` for every calendar-day token. */
@@ -163,7 +163,7 @@ describe('ComparisonOperatorSchema', () => {
163163 // `filter-comparand-shape.test.ts`.
164164 // ==========================================================================
165165
166- describe ( 'null comparand (#14080) ' , ( ) => {
166+ describe ( 'null comparand — refused in the four ordering slots, like a null list member ' , ( ) => {
167167 const OPS = [ '$gt' , '$gte' , '$lt' , '$lte' ] as const ;
168168 const messagesOf = ( result : { error ?: { issues : Array < { message : string } > } } ) : string =>
169169 ( result . error ?. issues ?? [ ] ) . map ( ( i ) => i . message ) . join ( '\n' ) ;
@@ -194,7 +194,7 @@ describe('ComparisonOperatorSchema', () => {
194194 expect ( nested . success ) . toBe ( false ) ;
195195 } ) ;
196196
197- it ( 'the null PREDICATES are untouched — $eq: null / $ne: null keep parsing (#5332) ' , ( ) => {
197+ it ( 'the null PREDICATES are untouched — $eq: null / $ne: null keep parsing' , ( ) => {
198198 expect ( FieldOperatorsSchema . safeParse ( { $eq : null } ) . success ) . toBe ( true ) ;
199199 expect ( FieldOperatorsSchema . safeParse ( { $ne : null } ) . success ) . toBe ( true ) ;
200200 // The normalized AST is a logical group at its root (a bare field
@@ -256,7 +256,7 @@ describe('SetOperatorSchema', () => {
256256 // on a missing prescription is not coverage of this ruling.
257257 // ==========================================================================
258258
259- describe ( '$field members are refused (#7596) ' , ( ) => {
259+ describe ( '$field members are refused' , ( ) => {
260260 it ( 'refuses a $field member of $in, naming the index and the alternative' , ( ) => {
261261 const result = SetOperatorSchema . safeParse ( { $in : [ 'won' , { $field : 'budget' } ] } ) ;
262262 expect ( result . success ) . toBe ( false ) ;
@@ -295,7 +295,7 @@ describe('SetOperatorSchema', () => {
295295 expect ( SetOperatorSchema . safeParse ( { $in : [ ] } ) . success ) . toBe ( true ) ;
296296 } ) ;
297297
298- it ( 'refuses a null member of $in / $nin — ruled 2026-08-31 (#13357) ' , ( ) => {
298+ it ( 'refuses a null member of $in / $nin — ruled 2026-08-31' , ( ) => {
299299 for ( const op of [ '$in' , '$nin' ] as const ) {
300300 const result = SetOperatorSchema . safeParse ( { [ op ] : [ 'won' , null ] } ) ;
301301 expect ( result . success , op ) . toBe ( false ) ;
@@ -361,7 +361,7 @@ describe('RangeOperatorSchema', () => {
361361 // parse verdicts on a declaration surface, not runtime refusals.)
362362 // ==========================================================================
363363
364- describe ( 'string endpoints (#6571) ' , ( ) => {
364+ describe ( 'string endpoints — `$between` takes the ISO and clock strings the platform produces ' , ( ) => {
365365 /**
366366 * `resolveFilterTokens`' `walk` descends into arrays, and every branch of
367367 * the resolver returns a string, so a token range resolves to two strings:
@@ -469,7 +469,7 @@ describe('RangeOperatorSchema', () => {
469469 // was.
470470 // ==========================================================================
471471
472- describe ( '$field endpoints are refused (#7596) ' , ( ) => {
472+ describe ( '$field endpoints are refused' , ( ) => {
473473 it ( 'refuses a $field LOWER bound, naming index 0 and the alternative' , ( ) => {
474474 const result = RangeOperatorSchema . safeParse ( {
475475 $between : [ { $field : 'a.min' } , '2026-12-31' ] ,
@@ -546,7 +546,7 @@ describe('RangeOperatorSchema', () => {
546546 * always rejected both), and the pair above them is what moved — which is
547547 * exactly the evidence that the two faces now agree.
548548 */
549- it ( 'the whole-filter face refuses these field conditions too — #7711 ( was green pre-#7711) ' , ( ) => {
549+ it ( 'the whole-filter face refuses these field conditions too — green while the group branch was a non-strict catch-all ' , ( ) => {
550550 const withReference = NormalizedFilterSchema . safeParse ( {
551551 $and : [ { amount : { $between : [ { $field : 'budget' } , 100 ] } } ] ,
552552 } ) ;
@@ -573,7 +573,7 @@ describe('RangeOperatorSchema', () => {
573573 * is the SCALAR comparand, and it is also what the refusal above prescribes.
574574 * If this went red the refusal message would be sending authors nowhere.
575575 */
576- it ( 'leaves the four ORDERING slots taking a reference — #5222 , and the prescribed alternative' , ( ) => {
576+ it ( 'leaves the four ORDERING slots taking a reference — a column-to-column comparison , and the prescribed alternative' , ( ) => {
577577 expect ( ComparisonOperatorSchema . safeParse ( { $gt : { $field : 'budget' } } ) . success ) . toBe ( true ) ;
578578 expect ( FieldOperatorsSchema . safeParse ( {
579579 $gte : { $field : 'a.min' } , $lte : { $field : 'a.max' } ,
@@ -605,7 +605,7 @@ describe('RangeOperatorSchema', () => {
605605 // (`filter-comparand-shape.test.ts`).
606606 // ==========================================================================
607607
608- describe ( 'blank $between endpoints are refused (#18012) ' , ( ) => {
608+ describe ( 'blank $between endpoints are refused' , ( ) => {
609609 const issuesOf = ( result : { error ?: { issues : Array < { path : PropertyKey [ ] ; message : string } > } } ) =>
610610 result . error ?. issues ?? [ ] ;
611611
@@ -676,7 +676,7 @@ describe('RangeOperatorSchema', () => {
676676 * face about each slot, so both are refused on save, at the endpoint, in the
677677 * sentence the enforced operator slot prints for the same pair.
678678 */
679- it ( 'is refused by FilterConditionSchema too, at the endpoint, in the operator slot\'s words (#20116) ' , ( ) => {
679+ it ( 'is refused by FilterConditionSchema too, at the endpoint, in the operator slot\'s words' , ( ) => {
680680 const blank = FilterConditionSchema . safeParse ( { age : { $between : [ 18 , '' ] } } ) ;
681681 expect ( blank . success ) . toBe ( false ) ;
682682 expect ( issuesOf ( blank ) . map ( ( i ) => i . path ) ) . toEqual ( [ [ 'age' , '$between' , 1 ] ] ) ;
@@ -1069,7 +1069,7 @@ describe('TypeScript Type System', () => {
10691069 * (the second reads `undefined`, not `never`: the old guard's `never` meets
10701070 * the slot's own `?`, and an optional `never` IS `undefined`.)
10711071 */
1072- it ( 'accepts an ISO string on a Date field and orders string fields (#5685) ' , ( ) => {
1072+ it ( 'accepts an ISO string on a Date field and orders string fields' , ( ) => {
10731073 interface Deal {
10741074 close_date : Date ; // resolved date macro arrives as 'YYYY-MM-DD'
10751075 shift_start : string ; // Field.time — 'HH:MM[:SS[.fff]]'
@@ -1098,7 +1098,7 @@ describe('TypeScript Type System', () => {
10981098 * recorded: the old guard's `never` meets the slot's own `?`, and an optional
10991099 * `never` IS `undefined`.)
11001100 */
1101- it ( 'accepts a resolved macro range on a Date field and ranges string fields (#6571) ' , ( ) => {
1101+ it ( 'accepts a resolved macro range on a Date field and ranges string fields' , ( ) => {
11021102 interface Deal {
11031103 close_date : Date ; // a resolved token range arrives as two 'YYYY-MM-DD'
11041104 shift_start : string ; // Field.time — 'HH:MM[:SS[.fff]]'
@@ -1459,7 +1459,7 @@ describe('NormalizedFilterSchema', () => {
14591459 // as well: the catch-all returned `{}` for the member it admitted, so the
14601460 // parse output no longer carried the condition it was asked about.
14611461 // ==========================================================================
1462- describe ( '#7711 — a member the field-condition branch refuses has nowhere to land' , ( ) => {
1462+ describe ( 'a member the field-condition branch refuses has nowhere to land' , ( ) => {
14631463 /** The card's clean control: `$null` has never been anything but a boolean. */
14641464 it ( 'rejects a $and member whose operator map FieldOperatorsSchema refuses' , ( ) => {
14651465 const result = NormalizedFilterSchema . safeParse ( {
@@ -1538,7 +1538,7 @@ describe('NormalizedFilterSchema', () => {
15381538 * the field-condition branch as an empty record, which is what lets the
15391539 * group branch be `.strict()` without touching any of them.
15401540 */
1541- it ( 'leaves the #5322 empty-combinator identities accepted' , ( ) => {
1541+ it ( 'leaves the empty-combinator identities accepted — each reduces to its boolean unit ' , ( ) => {
15421542 for ( const identity of [ { } , { $and : [ ] } , { $or : [ ] } , { $or : [ { } ] } , { $not : { } } ] ) {
15431543 expect ( NormalizedFilterSchema . safeParse ( identity ) . success ) . toBe ( true ) ;
15441544 }
@@ -1848,7 +1848,7 @@ describe('VALID_AST_OPERATORS', () => {
18481848// corpus and the memory evaluator's pins — not here.
18491849// ============================================================================
18501850
1851- describe ( 'FieldReferenceSchema.addDays (#14104) ' , ( ) => {
1851+ describe ( 'FieldReferenceSchema.addDays — a whole-day offset on a reference, an integer or another column ' , ( ) => {
18521852 const firstIssue = ( result : { error ?: { issues : Array < { code : string ; path : PropertyKey [ ] ; message : string } > } } ) =>
18531853 result . error ?. issues [ 0 ] ;
18541854
@@ -1959,7 +1959,7 @@ describe('FieldReferenceSchema.addDays (#14104)', () => {
19591959 expect ( firstIssue ( enforced ) ?. message . startsWith ( 'addDays must be an integer or a { "$field" } reference' ) ) . toBe ( true ) ;
19601960 } ) ;
19611961
1962- it ( 'adds no LIST position — a reference carrying addDays is refused where a bare one is (#7596) ' , ( ) => {
1962+ it ( 'adds no LIST position — a reference carrying addDays is refused where a bare one is' , ( ) => {
19631963 const result = SetOperatorSchema . safeParse ( { $in : [ { $field : 'due_date' , addDays : 1 } ] } ) ;
19641964 expect ( result . success ) . toBe ( false ) ;
19651965 expect ( firstIssue ( result ) ?. path ) . toEqual ( [ '$in' , 0 ] ) ;
@@ -1995,7 +1995,7 @@ describe('FieldReferenceSchema.addDays (#14104)', () => {
19951995 * and refuses `.` and `/` alike, so a slash-separated or unbackticked
19961996 * respelling trips it too.
19971997 */
1998- describe ( 'filter.zod.ts docblock @examples (#16923) ' , ( ) => {
1998+ describe ( 'filter.zod.ts docblock @examples — a `$field` comparand names a column of the same row ' , ( ) => {
19991999 const HERE = dirname ( fileURLToPath ( import . meta. url ) ) ;
20002000 const SOURCE = readFileSync ( resolve ( HERE , 'filter.zod.ts' ) , 'utf8' ) ;
20012001
0 commit comments