- Unit tests for createGameSession and evaluateAnswer (14 tests) - Endpoint tests for POST /game/start and /game/answer via supertest (8 tests) - Mock @glossa/db — no real database dependency
23 lines
485 B
JSON
23 lines
485 B
JSON
{
|
|
"name": "@glossa/api",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/server.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/server.js",
|
|
"test": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@glossa/db": "workspace:*",
|
|
"@glossa/shared": "workspace:*",
|
|
"express": "^5.2.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^5.0.6",
|
|
"@types/supertest": "^7.2.0",
|
|
"supertest": "^7.2.2",
|
|
"tsx": "^4.21.0"
|
|
}
|
|
}
|