- Install Jest and testing dependencies - Configure Jest with coverage reporting (lcov for SonarQube) - Add comprehensive tests for all helper functions - Update package.json test script to run with coverage Test coverage: - 42 tests passing - 87.87% line coverage on helpers.ts - 84.78% statement coverage 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "the-tip-top-frontend",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint .",
|
|
"test": "jest --coverage",
|
|
"sonar": "sonar-scanner"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@react-oauth/google": "^0.12.2",
|
|
"axios": "^1.13.1",
|
|
"bootstrap": "^5.3.3",
|
|
"lucide-react": "^0.553.0",
|
|
"next": "14.2.4",
|
|
"next-auth": "^4.24.7",
|
|
"nodemailer": "^7.0.10",
|
|
"prom-client": "^15.1.3",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"react-hook-form": "^7.66.0",
|
|
"react-hot-toast": "^2.6.0",
|
|
"recharts": "^3.4.1",
|
|
"zod": "^4.1.12"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "24.9.2",
|
|
"@types/react": "19.2.2",
|
|
"autoprefixer": "^10.4.21",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-next": "14.2.4",
|
|
"jest": "^30.2.0",
|
|
"jest-environment-jsdom": "^30.2.0",
|
|
"jiti": "^2.6.1",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^3.4.13",
|
|
"ts-jest": "^29.4.5",
|
|
"typescript": "5.9.3"
|
|
}
|
|
}
|