@@ -84,7 +84,10 @@ describe(`createIterationTracker`, () => {
8484 } )
8585
8686 it ( `should format warning with iteration breakdown` , ( ) => {
87- const tracker = createIterationTracker < string > ( 5 , ( state ) => `ops=[${ state } ]` )
87+ const tracker = createIterationTracker < string > (
88+ 5 ,
89+ ( state ) => `ops=[${ state } ]` ,
90+ )
8891
8992 // Create a pattern: 2 in state-a, then exceed in state-b
9093 tracker . trackAndCheckLimit ( `TopK,Filter` )
@@ -98,9 +101,13 @@ describe(`createIterationTracker`, () => {
98101 totalOperators : 8 ,
99102 } )
100103
101- expect ( warning ) . toContain ( `[TanStack DB] D2 graph execution exceeded 5 iterations` )
104+ expect ( warning ) . toContain (
105+ `[TanStack DB] D2 graph execution exceeded 5 iterations` ,
106+ )
102107 expect ( warning ) . toContain ( `Continuing with available data` )
103- expect ( warning ) . toContain ( `Iteration breakdown (where the loop spent time):` )
108+ expect ( warning ) . toContain (
109+ `Iteration breakdown (where the loop spent time):` ,
110+ )
104111 expect ( warning ) . toContain ( `1-2: ops=[TopK,Filter]` )
105112 expect ( warning ) . toContain ( `3-6: ops=[TopK]` )
106113 expect ( warning ) . toContain ( `"totalOperators": 8` )
@@ -124,7 +131,8 @@ describe(`createIterationTracker`, () => {
124131 type State = { valuesNeeded : number ; keysInBatch : number }
125132 const tracker = createIterationTracker < State > (
126133 5 ,
127- ( state ) => `valuesNeeded=${ state . valuesNeeded } , keysInBatch=${ state . keysInBatch } `
134+ ( state ) =>
135+ `valuesNeeded=${ state . valuesNeeded } , keysInBatch=${ state . keysInBatch } ` ,
128136 )
129137
130138 tracker . trackAndCheckLimit ( { valuesNeeded : 10 , keysInBatch : 5 } )
@@ -167,7 +175,9 @@ describe(`createIterationTracker`, () => {
167175
168176 const warning = tracker . formatWarning ( `Graph execution` )
169177
170- expect ( warning ) . toContain ( `[TanStack DB] Graph execution exceeded 2 iterations` )
178+ expect ( warning ) . toContain (
179+ `[TanStack DB] Graph execution exceeded 2 iterations` ,
180+ )
171181 expect ( warning ) . not . toContain ( `Diagnostic info:` )
172182 } )
173183} )
0 commit comments