test: add EDR passenger pricing/config E2E bug-hunt harness

Hermetic E2E harness targeting pricing integrity and backoffice config:
- e2e/ docker Postgres (5544) + prepare.sh/run.sh one-command runner + HTML report
- 6 suites / 23 tests reproducing pricing, FX, wallet, refund, config and auth
  defects (see docs/ISSUES.md); docs/e2e-test-matrix.md documents the matrix
- two-tier harness (slim module boot + direct service instantiation) to work
  around the IAM/RabbitMQ/file-type boot wall
- .env.test.example tracked; loader falls back to it for fresh checkouts

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Muluhabt
2026-07-20 16:22:40 +03:00
parent 5d94e8acf2
commit c4f54a666b
24 changed files with 1938 additions and 2 deletions

View File

@@ -10,6 +10,11 @@
"lint": "eslint src",
"test": "jest",
"test:e2e": "jest --config ./test/jest-e2e.json",
"test:e2e:report": "jest --config ./test/jest-e2e.json; open e2e-report/index.html",
"test:e2e:all": "bash ../../e2e/run.sh",
"test:e2e:db:up": "docker compose -f ../../e2e/docker-compose.yml up -d",
"test:e2e:db:down": "docker compose -f ../../e2e/docker-compose.yml down",
"test:e2e:prepare": "bash ../../e2e/prepare.sh",
"type-check": "tsc --noEmit",
"iam:migrate": "node --env-file=.env scripts/run-iam-migrations.cjs",
"iam:seed-dev-user": "node --env-file=.env scripts/seed-iam-dev-user.cjs",
@@ -76,6 +81,7 @@
"@types/supertest": "^6.0.2",
"@types/uuid": "^9.0.0",
"jest": "^29.7.0",
"jest-html-reporters": "^3.1.7",
"prisma": "^6.19.3",
"supertest": "^7.0.0",
"ts-jest": "^29.1.1",