feat: prepare six-lesson trial backend with reliable rewards and operations
Backend CI / type-check, build, tests (push) Successful in 1m0s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-12 14:35:42 +03:30
co-authored by Cursor
parent 5e5a14030a
commit dfb20ca92c
46 changed files with 2589 additions and 123 deletions
+17 -6
View File
@@ -8,12 +8,23 @@
"start": "node dist/main.js",
"start:prod": "node dist/main.js",
"type-check": "tsc --noEmit -p tsconfig.json",
"test:integration": "tsx test/integration.test.ts",
"test:progression": "tsx test/progression.test.ts",
"test:cutover:g1a": "tsx ../scripts/cutover/run-g1a.ts",
"test:cutover:g1b": "tsx ../scripts/cutover/run-g1b.ts",
"test:cutover:g1b2b": "tsx ../scripts/cutover/run-g1b2b.ts",
"test:cutover:g1b:dry-run": "tsx ../scripts/cutover/g1b-dry-run.ts"
"test:integration": "tsx --tsconfig tsconfig.json test/integration.test.ts",
"test:progression": "tsx --tsconfig tsconfig.json test/progression.test.ts",
"test:concurrency": "tsx --tsconfig tsconfig.json test/concurrency.test.ts",
"test:gold-precision": "tsx --tsconfig tsconfig.json test/gold-precision.test.ts",
"test:lesson-rewards": "tsx --tsconfig tsconfig.json test/lesson-rewards-api.test.ts",
"test:dual-connection": "tsx --tsconfig tsconfig.json test/dual-connection.test.ts",
"test:production-config": "tsx --tsconfig tsconfig.json test/production-config.test.ts",
"test:auth-rate-limit": "tsx --tsconfig tsconfig.json test/auth-rate-limit.test.ts",
"test:client-ip": "tsx --tsconfig tsconfig.json test/client-ip.test.ts",
"test:auth-rate-limit-xff": "tsx --tsconfig tsconfig.json test/auth-rate-limit-xff.test.ts",
"test:restore-safety": "tsx --tsconfig tsconfig.json test/restore-safety.test.ts",
"test:production-error": "tsx --tsconfig tsconfig.json test/production-error.test.ts",
"backup:sqlite": "node scripts/sqlite-backup.mjs",
"restore:sqlite": "node scripts/sqlite-restore.mjs",
"smoke:trial-production": "node scripts/trial-production-smoke.mjs",
"test:backup-restore": "tsx --tsconfig tsconfig.json test/backup-restore.test.ts",
"test": "npm run test:progression && npm run test:integration && npm run test:concurrency && npm run test:gold-precision && npm run test:lesson-rewards && npm run test:dual-connection && npm run test:production-config && npm run test:production-error && npm run test:client-ip && npm run test:auth-rate-limit && npm run test:auth-rate-limit-xff && npm run test:backup-restore && npm run test:restore-safety"
},
"dependencies": {
"@nestjs/common": "^11.0.12",