File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed
packages/db-collection-e2e Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 55 "description" : " End-to-end test suite for TanStack DB collections" ,
66 "type" : " module" ,
77 "scripts" : {
8- "test" : " vitest --run" ,
9- "test:watch" : " vitest" ,
10- "test:ui" : " vitest --ui" ,
8+ "test" : " echo 'This package contains shared test suites. Run tests from electric-db-collection or query-db-collection packages.'" ,
119 "docker:up" : " docker compose -f docker/docker-compose.yml up -d" ,
1210 "docker:down" : " docker compose -f docker/docker-compose.yml down" ,
1311 "docker:logs" : " docker compose -f docker/docker-compose.yml logs -f"
Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ export function createJoinsTestSuite(getConfig: () => Promise<E2ETestConfig>) {
9292 )
9393
9494 await query . preload ( )
95- // Joins with on-demand collections may need more time to load data from multiple sources
95+ // Joins with eager + on-demand collections may need more time to load data from multiple sources
9696 // Use longer timeout for CI environments which can be slower
97- await waitForQueryData ( query , { minSize : 1 , timeout : 10000 } )
97+ await waitForQueryData ( query , { minSize : 1 , timeout : 30000 } )
9898
9999 const results = Array . from ( query . state . values ( ) )
100100 expect ( results . length ) . toBeGreaterThan ( 0 )
@@ -267,9 +267,9 @@ export function createJoinsTestSuite(getConfig: () => Promise<E2ETestConfig>) {
267267 )
268268
269269 await query . preload ( )
270- // 3-way joins with on-demand collections need more time
270+ // 3-way joins with mixed eager + on-demand collections need more time
271271 // Use longer timeout for CI environments which can be slower
272- await waitForQueryData ( query , { minSize : 1 , timeout : 10000 } )
272+ await waitForQueryData ( query , { minSize : 1 , timeout : 30000 } )
273273
274274 const results = Array . from ( query . state . values ( ) )
275275 expect ( results . length ) . toBeGreaterThan ( 0 )
Original file line number Diff line number Diff line change 1313 "skipLibCheck" : true ,
1414 "forceConsistentCasingInFileNames" : true ,
1515 "resolveJsonModule" : true ,
16- "allowSyntheticDefaultImports" : true
17- },
18- "paths " : {
19- "@tanstack/db" : [" ../db/src" ],
20- "@tanstack/db-ivm " : [" ../db-ivm/src " ],
21- "@tanstack/electric -db-collection" : [" ../electric -db-collection" ],
22- "@tanstack/query-db-collection" : [ " ../query-db-collection " ]
16+ "allowSyntheticDefaultImports" : true ,
17+ "paths" : {
18+ "@tanstack/db " : [ " ../db/src " ],
19+ "@tanstack/db-ivm " : [" ../db-ivm /src" ],
20+ "@tanstack/electric- db-collection " : [" ../electric- db-collection " ],
21+ "@tanstack/query -db-collection" : [" ../query -db-collection" ]
22+ }
2323 },
2424 "include" : [" src/**/*" , " support/**/*" ],
2525 "exclude" : [" node_modules" , " dist" ]
You can’t perform that action at this time.
0 commit comments