@@ -1487,54 +1487,51 @@ function genericLocalStoreTests(
1487
1487
// Comment back in when done with the idempotent migration.
1488
1488
// (queryEngine instanceof IndexFreeQueryEngine && !gcIsEager ? it : it.skip)(
1489
1489
// eslint-disable-next-line no-restricted-properties
1490
- it . skip (
1491
- 'uses target mapping to execute queries' ,
1492
- ( ) => {
1493
- // This test verifies that once a target mapping has been written, only
1494
- // documents that match the query are read from the RemoteDocumentCache.
1490
+ it . skip ( 'uses target mapping to execute queries' , ( ) => {
1491
+ // This test verifies that once a target mapping has been written, only
1492
+ // documents that match the query are read from the RemoteDocumentCache.
1495
1493
1496
- const query = Query . atPath ( path ( 'foo' ) ) . addFilter (
1497
- filter ( 'matches' , '==' , true )
1498
- ) ;
1499
- return (
1500
- expectLocalStore ( )
1501
- . afterAllocatingQuery ( query )
1502
- . toReturnTargetId ( 2 )
1503
- . after ( setMutation ( 'foo/a' , { matches : true } ) )
1504
- . after ( setMutation ( 'foo/b' , { matches : true } ) )
1505
- . after ( setMutation ( 'foo/ignored' , { matches : false } ) )
1506
- . afterAcknowledgingMutation ( { documentVersion : 10 } )
1507
- . afterAcknowledgingMutation ( { documentVersion : 10 } )
1508
- . afterAcknowledgingMutation ( { documentVersion : 10 } )
1509
- . afterExecutingQuery ( query )
1510
- // Execute the query, but note that we read all existing documents
1511
- // from the RemoteDocumentCache since we do not yet have target
1512
- // mapping.
1513
- . toHaveRead ( { documentsByQuery : 2 } )
1514
- . after (
1515
- docAddedRemoteEvent (
1516
- [
1517
- doc ( 'foo/a' , 10 , { matches : true } ) ,
1518
- doc ( 'foo/b' , 10 , { matches : true } )
1519
- ] ,
1520
- [ 2 ] ,
1521
- [ ]
1522
- )
1523
- )
1524
- . after (
1525
- noChangeEvent ( /* targetId= */ 2 , /* snapshotVersion= */ 10 , 'foo' )
1526
- )
1527
- . after ( localViewChanges ( 2 , /* fromCache= */ false , { } ) )
1528
- . afterExecutingQuery ( query )
1529
- . toHaveRead ( { documentsByKey : 2 , documentsByQuery : 0 } )
1530
- . toReturnChanged (
1531
- doc ( 'foo/a' , 10 , { matches : true } ) ,
1532
- doc ( 'foo/b' , 10 , { matches : true } )
1494
+ const query = Query . atPath ( path ( 'foo' ) ) . addFilter (
1495
+ filter ( 'matches' , '==' , true )
1496
+ ) ;
1497
+ return (
1498
+ expectLocalStore ( )
1499
+ . afterAllocatingQuery ( query )
1500
+ . toReturnTargetId ( 2 )
1501
+ . after ( setMutation ( 'foo/a' , { matches : true } ) )
1502
+ . after ( setMutation ( 'foo/b' , { matches : true } ) )
1503
+ . after ( setMutation ( 'foo/ignored' , { matches : false } ) )
1504
+ . afterAcknowledgingMutation ( { documentVersion : 10 } )
1505
+ . afterAcknowledgingMutation ( { documentVersion : 10 } )
1506
+ . afterAcknowledgingMutation ( { documentVersion : 10 } )
1507
+ . afterExecutingQuery ( query )
1508
+ // Execute the query, but note that we read all existing documents
1509
+ // from the RemoteDocumentCache since we do not yet have target
1510
+ // mapping.
1511
+ . toHaveRead ( { documentsByQuery : 2 } )
1512
+ . after (
1513
+ docAddedRemoteEvent (
1514
+ [
1515
+ doc ( 'foo/a' , 10 , { matches : true } ) ,
1516
+ doc ( 'foo/b' , 10 , { matches : true } )
1517
+ ] ,
1518
+ [ 2 ] ,
1519
+ [ ]
1533
1520
)
1534
- . finish ( )
1535
- ) ;
1536
- }
1537
- ) ;
1521
+ )
1522
+ . after (
1523
+ noChangeEvent ( /* targetId= */ 2 , /* snapshotVersion= */ 10 , 'foo' )
1524
+ )
1525
+ . after ( localViewChanges ( 2 , /* fromCache= */ false , { } ) )
1526
+ . afterExecutingQuery ( query )
1527
+ . toHaveRead ( { documentsByKey : 2 , documentsByQuery : 0 } )
1528
+ . toReturnChanged (
1529
+ doc ( 'foo/a' , 10 , { matches : true } ) ,
1530
+ doc ( 'foo/b' , 10 , { matches : true } )
1531
+ )
1532
+ . finish ( )
1533
+ ) ;
1534
+ } ) ;
1538
1535
1539
1536
it ( 'last limbo free snapshot is advanced during view processing' , async ( ) => {
1540
1537
// This test verifies that the `lastLimboFreeSnapshot` version for QueryData
0 commit comments