Files
cve-dashboard/package.json
Jordan Ramos 8b985a21f8 Restrict root Jest to backend/__tests__ only — stop scanning frontend
Jest 30 default test discovery was finding frontend/src/**/*.test.js
and __tests__/ files when running from the project root. These need
react-scripts (CRA's Babel config) to parse ESM imports and JSX.
Added jest.roots to confine root-level Jest to backend tests only.
Frontend tests run separately via react-scripts test in test-frontend.
2026-06-16 16:17:57 -06:00

39 lines
948 B
JSON

{
"name": "cve-dashboard",
"version": "1.0.0",
"description": "STEAM Security Dashboard — vulnerability management for NTS-AEO",
"author": "",
"license": "ISC",
"private": true,
"scripts": {
"test": "jest --ci --forceExit backend/__tests__/",
"test:backend": "jest --ci --forceExit backend/__tests__/",
"test:frontend": "cd frontend && CI=true npx react-scripts test --watchAll=false --ci --forceExit"
},
"keywords": [],
"dependencies": {
"bcryptjs": "^3.0.3",
"cookie-parser": "^1.4.7",
"cors": "^2.8.6",
"dotenv": "^16.6.1",
"express": "^5.2.1",
"express-rate-limit": "^7.5.0",
"multer": "^2.0.2",
"pg": "^8.20.0",
"sqlite3": "^5.1.7"
},
"devDependencies": {
"fast-check": "^4.8.0",
"jest": "^30.3.0"
},
"jest": {
"roots": [
"<rootDir>/backend/__tests__"
],
"testPathIgnorePatterns": [
"/node_modules/",
"integration"
]
}
}