lilith-platform.live/codebase/@features/api/scripts
Natalie c5bca260e9 test(api): auto-skip DB-dependent tests off the fast LAN path
The api suite is ~95% Postgres integration tests against black, which is only
low-latency from apricot/LAN. Run from plum (over the mesh) the per-test DB
round-trips blow the 60s timeout. New scripts/run-tests.ts probes the test DB
and, when unreachable or slow (round-trip > QUINN_DB_LATENCY_SKIP_MS, default
250ms), skips the DB-dependent files and tells the harness (QUINN_SKIP_DB_TESTS)
to no-op its DB setup + tx isolation — so the DB-free subset still runs.

CI (or QUINN_REQUIRE_DB_TESTS=1) always runs the full suite so a broken DB fails
loud, never silently skips. test-env.ts is the shared gate; test:full / test:no-db
force either mode. From plum: 370 pass, 0 fail (92 DB files skipped, logged).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 18:20:11 -05:00
..
backfill-pii-extraction.ts
drop-test-db.ts
drop-test-dbs.ts
migrate-from-quinn-admin.ts
migrate.ts
run-tests.ts test(api): auto-skip DB-dependent tests off the fast LAN path 2026-06-19 18:20:11 -05:00
scaffold-entity.ts
seed-london-demo.sh
seed-quinn-destinations.ts
seed-quinn-gallery.ts
seed-quinn-iter16.ts
seed-quinn-profile.ts
seed-quinn-rates.ts
seed-quinn-recurring-anchors.ts
seed-quinn-shop.ts
seed-quinn-site-text.ts
seed-quinn-specialties.ts
smoke-opportunity-ranked.ts