feat: Add Jenkins integration for testing with pre-push hook
- 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.
This commit is contained in:
@@ -21,14 +21,18 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"export": "next export"
|
||||
"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"
|
||||
|
||||
Reference in New Issue
Block a user