{
  "name": "@sehat/e2e",
  "version": "2.0.0",
  "private": true,
  "description": "End-to-end test suite for Sehat Sahoolat v2 — real backend + ephemeral Postgres",
  "scripts": {
    "infra:up": "docker compose -f docker-compose.e2e.yml up -d --wait",
    "infra:down": "docker compose -f docker-compose.e2e.yml down -v",
    "db:migrate": "cd ../../backend && DB_PORT=5434 REDIS_PORT=6381 DB_DATABASE=sehat_e2e npm run db:migrate",
    "db:seed": "tsx scripts/seed.ts",
    "db:reset": "npm run infra:down && npm run infra:up && sleep 2 && npm run db:migrate && npm run db:seed",
    "pretest": "npm run infra:up",
    "test": "playwright test",
    "test:patient": "playwright test specs/patient",
    "test:doctor": "playwright test specs/doctor",
    "test:admin": "playwright test specs/admin",
    "test:cross": "playwright test specs/cross-portal",
    "test:headed": "playwright test --headed",
    "test:debug": "playwright test --debug",
    "test:ui": "playwright test --ui",
    "report": "playwright show-report"
  },
  "devDependencies": {
    "@playwright/test": "^1.49.1",
    "@types/node": "^22.10.2",
    "@types/pg": "^8.11.10",
    "argon2": "^0.41.1",
    "dotenv": "^16.4.7",
    "pg": "^8.13.1",
    "tsx": "^4.19.2",
    "typescript": "^5.7.2"
  }
}
