- Configured Jenkins FreeStyle job to trigger on push - Added `npm install` and `npm test` steps in Jenkins build configuration - Updated pre-push hook script to trigger Jenkins job and wait for test results - Installed jest, @testing-library/react, and @testing-library/jest-dom as dev dependencies for testing This commit sets up automated testing in Jenkins before code is pushed to the remote repository, ensuring code quality and preventing broken builds.
41 lines
1.0 KiB
JSON
41 lines
1.0 KiB
JSON
{
|
|
"dependencies": {
|
|
"@heroicons/react": "^2.1.3",
|
|
"express": "^4.19.2",
|
|
"http-proxy-middleware": "^3.0.0",
|
|
"leaflet": "^1.9.4",
|
|
"leaflet-contextmenu": "^1.4.0",
|
|
"leaflet.smooth_marker_bouncing": "^3.0.3",
|
|
"lodash": "^4.17.21",
|
|
"mysql": "^2.18.1",
|
|
"mysql2": "^3.10.1",
|
|
"next": "^14.2.3",
|
|
"overlapping-marker-spiderfier-leaflet": "^0.2.7",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.3.1",
|
|
"react-leaflet": "^4.2.1",
|
|
"react-toastify": "^10.0.5",
|
|
"recoil": "^0.7.7"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"export": "next export",
|
|
"test": "jest"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.4.6",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@types/leaflet": "^1.9.12",
|
|
"@types/leaflet-contextmenu": "^1.4.3",
|
|
"@types/react": "^18.3.1",
|
|
"@types/react-dom": "^18.3.0",
|
|
"autoprefixer": "^10.4.19",
|
|
"jest": "^29.7.0",
|
|
"postcss": "^8.4.38",
|
|
"prettier": "^3.2.5",
|
|
"tailwindcss": "^3.4.3"
|
|
}
|
|
}
|