Skip to content

Commit 2edeb4f

Browse files
committed
fixes for ci
1 parent 04e94b0 commit 2edeb4f

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

packages/db-collection-e2e/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
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"

packages/db-collection-e2e/src/suites/joins.suite.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

packages/db-collection-e2e/tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
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"]

0 commit comments

Comments
 (0)