Add standalone API test runner with accounts and members suites

Custom test framework that starts the backend, creates a test DB, runs
migrations, and hits real HTTP endpoints. Supports --suite and --tag
filtering. 24 tests covering account CRUD, member inheritance, state
normalization, move, search, and auto-generated numbers. Run with
bun run api-test.
This commit is contained in:
Ryan Moon
2026-03-28 12:52:04 -05:00
parent b9e984cfa3
commit f47bfdbcdb
7 changed files with 733 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
"start": "bun run src/main.ts",
"test": "bun test",
"test:watch": "bun test --watch",
"api-test": "bun run api-tests/run.ts",
"lint": "eslint src/",
"db:generate": "bunx drizzle-kit generate",
"db:migrate": "bunx drizzle-kit migrate",