feat: Add Jest testing infrastructure with comprehensive mocks and test scripts

- Add jest.config.js with Next.js integration, jsdom environment, module path mapping, and coverage collection for src/**/*.{js,jsx,ts,tsx}
- Add jest.setup.js with @testing-library/jest-dom, Next.js router/navigation mocks, IntersectionObserver/ResizeObserver/WebSocket/fetch mocks, localStorage/sessionStorage mocks
- Add package.json test scripts: test, test:watch, test:coverage
- Add testing dependencies: @testing-library/jest
This commit is contained in:
nutcas3
2026-04-20 18:08:04 +03:00
parent 961259cd39
commit 02af897c5f
16 changed files with 3226 additions and 2 deletions
+2 -1
View File
@@ -20,7 +20,8 @@
],
"paths": {
"@/*": ["./src/*"]
}
},
"types": ["node", "jest", "@testing-library/jest-dom"]
},
"include": [
"next-env.d.ts",