Go to file
soufiane 1e9f16fded test: add Jest testing setup and unit tests
Frontend Tests Added:
- Jest configuration with TypeScript support
- Jest setup with Next.js mocks
- Unit tests for lib/metrics.ts (normalizePath, registry)
- Unit tests for lib/api-metrics.ts (withMetrics wrapper)
- Unit tests for middleware (auth routes, token detection)
- Unit tests for API track route (payload validation)

Dependencies added:
- jest, @testing-library/react, @testing-library/jest-dom
- ts-jest, jest-environment-jsdom, @types/jest

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 11:24:46 +01:00
__tests__ test: add Jest testing setup and unit tests 2025-11-27 11:24:46 +01:00
app feat: add Prometheus metrics endpoint 2025-11-26 15:57:33 +01:00
lib feat: add Prometheus metrics endpoint 2025-11-26 15:57:33 +01:00
public feat: initial Next.js frontend 2025-10-28 22:48:49 +00:00
.dockerignore Initial commit du frontend The Tip Top 2025-10-30 11:11:59 +00:00
.gitignore feat: initial Next.js frontend 2025-10-28 22:48:49 +00:00
Dockerfile Initial commit du frontend The Tip Top 2025-10-30 11:11:59 +00:00
eslint.config.mjs feat: initial Next.js frontend 2025-10-28 22:48:49 +00:00
instrumentation.ts feat: add Prometheus metrics endpoint 2025-11-26 15:57:33 +01:00
Jenkinsfile Fix Jenkinsfile: force recreate + health check 2025-10-31 01:08:06 +01:00
jest.config.js test: add Jest testing setup and unit tests 2025-11-27 11:24:46 +01:00
jest.setup.js test: add Jest testing setup and unit tests 2025-11-27 11:24:46 +01:00
middleware.ts fix: simplify middleware, remove broken fetch tracking 2025-11-26 16:29:42 +01:00
next.config.js Initial commit du frontend The Tip Top 2025-10-30 11:11:59 +00:00
package-lock.json test: add Jest testing setup and unit tests 2025-11-27 11:24:46 +01:00
package.json test: add Jest testing setup and unit tests 2025-11-27 11:24:46 +01:00
postcss.config.mjs feat: initial Next.js frontend 2025-10-28 22:48:49 +00:00
README.md feat: initial Next.js frontend 2025-10-28 22:48:49 +00:00
tsconfig.json Initial commit du frontend The Tip Top 2025-10-30 11:11:59 +00:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.