{
  "name": "@ffoa/testing",
  "version": "1.0.0",
  "description": "FFOA 统一测试模块",
  "private": true,
  "scripts": {
    "test": "echo \"Use: npm run test:e2e -- --module <module>\" && exit 0",
    "test:contract": "node_modules/.bin/ts-node --transpile-only scripts/contract-check.ts",
    "test:contract:module": "node_modules/.bin/ts-node --transpile-only scripts/contract-check.ts --module",
    "test:data-quality": "node_modules/.bin/ts-node --transpile-only scripts/data-quality-check.ts",
    "test:data-quality:module": "node_modules/.bin/ts-node --transpile-only scripts/data-quality-check.ts --module",
    "test:snapshot": "node_modules/.bin/ts-node --project scripts/tsconfig.json scripts/response-snapshot-check.ts",
    "test:snapshot:module": "node_modules/.bin/ts-node --project scripts/tsconfig.json scripts/response-snapshot-check.ts --module",
    "test:backend": "npm run test:backend:integration",
    "test:backend:unit": "node ../backend/node_modules/.bin/jest --config config/jest-backend-unit.json",
    "test:backend:integration": "bash scripts/run-backend-integration.sh",
    "test:backend:all": "npm run test:backend:unit && npm run test:backend:integration",
    "test:backend:all:cov": "npm run test:backend:unit:cov && npm run test:backend:integration:cov",
    "test:backend:unit:cov": "node ../backend/node_modules/.bin/jest --config config/jest-backend-unit.json --coverage",
    "test:backend:unit:watch": "node ../backend/node_modules/.bin/jest --config config/jest-backend-unit.json --watch",
    "test:backend:integration:cov": "node ../backend/node_modules/.bin/jest --config config/jest-backend-integration.json --coverage --forceExit",
    "test:backend:integration:watch": "node ../backend/node_modules/.bin/jest --config config/jest-backend-integration.json --watch --forceExit",
    "test:backend:org": "npm run test:backend:org:unit && npm run test:backend:org:integration",
    "test:backend:org:unit": "node ../backend/node_modules/.bin/jest --config config/jest-backend-unit.json testing/backend/unit/organization",
    "test:backend:org:integration": "bash scripts/run-backend-integration.sh testing/backend/integration/organization",
    "test:backend:org:cov": "node ../backend/node_modules/.bin/jest --config config/jest-backend-unit.json testing/backend/unit/organization --coverage",
    "test:e2e": "node --loader ts-node/esm tools/run-e2e.ts",
    "test:all": "npm run test:contract && npm run test:backend && npm run test:data-quality",
    "test:all:quality": "npm run test:contract && npm run test:backend:integration && npm run test:data-quality",
    "test:backend:integration:down": "bash scripts/test-db-down.sh",
    "report:allure": "allure generate allure-results --clean && allure open allure-report",
    "clean": "rm -rf allure-results allure-report coverage-backend-unit coverage-backend-integration"
  },
  "dependencies": {},
  "devDependencies": {
    "@faker-js/faker": "^9.4.0",
    "ts-node": "^10.9.2",
    "typescript": "^5.3.3",
    "dotenv": "^16.4.7",
    "supertest": "^7.0.0",
    "jest-mock-extended": "^3.0.7"
  },
  "author": "FFOA Team",
  "license": "UNLICENSED"
}
