Refactor useTypingEffect to use a single useEffect with proper cleanup for all timers, preventing state updates on unmounted components. Add unit tests to verify behavior and ensure no memory leaks on unmount.
38 lines
937 B
JSON
38 lines
937 B
JSON
{
|
|
"name": "ragusaitweb",
|
|
"version": "1.0.0",
|
|
"description": "Ragusa IT-Consulting - Web Development & IT Support",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ragusa-it/ragusaitweb.git"
|
|
},
|
|
"author": "Ragusa IT-Consulting",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@emailjs/browser": "^4.4.1",
|
|
"motion": "^12.28.1",
|
|
"ogl": "^1.0.11",
|
|
"react": "^19.2.3",
|
|
"react-dom": "^19.2.3",
|
|
"react-icons": "^5.5.0",
|
|
"react-router-dom": "^7.12.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/react": "^19.2.9",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.1.2",
|
|
"jsdom": "^27.4.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.1",
|
|
"vitest": "^4.0.17"
|
|
}
|
|
}
|