lilith-platform.live/codebase/@features/api/package.json
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

50 lines
1.7 KiB
JSON

{
"name": "@quinn/api",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "bun run --watch --env-file=.env.development src/app/server.ts",
"start": "bun run src/app/server.ts",
"typecheck": "tsc --noEmit",
"lint:boundaries": "depcruise src --config .dependency-cruiser.cjs",
"test": "bun run scripts/run-tests.ts",
"test:full": "QUINN_REQUIRE_DB_TESTS=1 bun run scripts/run-tests.ts",
"test:no-db": "QUINN_SKIP_DB_TESTS=1 bun run scripts/run-tests.ts",
"scaffold:entity": "bun run scripts/scaffold-entity.ts",
"migrate": "bun run scripts/migrate.ts",
"backfill": "bun run src/scripts/backfill-processors.ts",
"backfill:contacts": "bun run src/scripts/backfill-contacts.ts"
},
"dependencies": {
"@hono/node-server": "^1.19.14",
"@lilith/agent-prospector": "^0.4.0",
"@lilith/claude-code-sdk": "^1.0.4",
"@lilith/i18n": "workspace:*",
"@lilith/mac-sync-client": "0.1.0",
"@lilith/mail-sync-client": "0.1.5",
"@lilith/mailer": "^1.0.1",
"@lilith/mailer-multi": "workspace:*",
"@lilith/messenger-model-boss": "^1.4.1",
"@lilith/qr-device-login-client": "^0.1.2",
"@lilith/tour-optimizer": "workspace:*",
"@simplewebauthn/server": "^13.3.0",
"hono": "^4.6.0",
"imapflow": "^1.2.18",
"liquidjs": "^10.16.0",
"marked": "^18.0.0",
"minio": "^8.0.7",
"otplib": "^13.4.0",
"postgres": "^3.4.9",
"sharp": "^0.34.5",
"web-push": "^3.6.7",
"yaml": "^2.8.3",
"zod": "^3.23.0"
},
"devDependencies": {
"@types/bun": "latest",
"@types/web-push": "^3.6.4",
"dependency-cruiser": "^16.4.0",
"typescript": "^5.6.0"
}
}