Skip to content
Source
Sign inSign up
TanStack/db

test(db): add loadSubset and pagination oracles #1750

MergedKyleAMathews(GitHub profile, opens in a new tab)merged 12 commits intomain fromrefs/pull/1750/headmerged by tannerlinsley

Showing 10 changed files with 172 additions and 0 deletions (loading 8).

x
0 of 10 viewed, 10 left
7 additions and 0 deletionsAGENTS.mdModified
View file
@@ -379,6 +379,13 @@
```
​
+### Name Tests After Behavior
+​
+Test names should state the behavior they prove. Do not put issue or pull
+request numbers in test names; those references become stale and make the test
+suite harder to read. When an external report contains essential context that
+the test cannot express, link it in a nearby comment instead.
+​
### Test Corner Cases
​
Common corner cases to consider:
165 additions and 0 deletionspackages/db/tests/query/load-subset-join-dedupe.test.tsAdded
View file
@@ -0,0 +1,165 @@
+import { afterEach, describe, expect, it, vi } from 'vitest'
+import { createCollection } from '../../src/collection/index.js'
+import { BasicIndex } from '../../src/indexes/basic-index.js'
+import { extractSimpleComparisons } from '../../src/query/expression-helpers.js'
+import { createLiveQueryCollection, eq } from '../../src/query/index.js'
+import { expectAssertionFailure } from '../expected-failure.js'
+import { TraceAssertionError } from '../trace-runner.js'