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.
38 lines
924 B
JSON
38 lines
924 B
JSON
{
|
|
"name": "@forte/backend",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --watch run src/main.ts",
|
|
"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",
|
|
"db:seed": "bun run src/db/seed.ts"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cors": "^10",
|
|
"@fastify/jwt": "^9",
|
|
"@fastify/rate-limit": "^10.3.0",
|
|
"@forte/shared": "workspace:*",
|
|
"bcrypt": "^6",
|
|
"drizzle-orm": "^0.38",
|
|
"fastify": "^5",
|
|
"fastify-plugin": "^5",
|
|
"ioredis": "^5",
|
|
"postgres": "^3",
|
|
"zod": "^4"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5",
|
|
"drizzle-kit": "^0.30",
|
|
"pino-pretty": "^13",
|
|
"@types/node": "^22",
|
|
"@types/bcrypt": "^5"
|
|
}
|
|
}
|