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:
ISA
2024-07-10 13:57:28 +02:00
parent b40aace5a1
commit 3bbbfeb872
6 changed files with 3867 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
// __tests__/MapComponent.test.js
import { render, screen } from "@testing-library/react";
import MapComponent from "../components/MapComponent";
test("renders map component", () => {
render(<MapComponent />);
expect(screen.getByText("TALAS.Map")).toBeInTheDocument();
});