feat(package): add Cypress for end-to-end testing and enhance scripts

- Added Cypress as a dependency for end-to-end testing.
- Introduced new npm scripts for running Cypress tests and starting the development server for testing.
- Updated package-lock.json to reflect the new dependencies and their versions.
This commit is contained in:
AmirReza Jamali
2026-04-21 15:59:20 +03:30
parent dae564b859
commit bb1af8b31c
8 changed files with 2099 additions and 20 deletions
+7 -1
View File
@@ -4,9 +4,13 @@
"private": true,
"scripts": {
"dev": "next dev",
"dev:e2e": "next dev -p 3000",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"test:e2e": "start-server-and-test dev:e2e http://localhost:3000 \"CYPRESS_BASE_URL=http://localhost:3000 cypress run\""
},
"dependencies": {
"@tanstack/react-query": "^5.85.6",
@@ -44,11 +48,13 @@
"@types/react": "19.0.8",
"@types/react-dom": "19.0.3",
"autoprefixer": "^10.4.20",
"cypress": "^15.14.0",
"eslint": "^9",
"eslint-config-next": "15.1.9",
"postcss": "^8",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.11",
"start-server-and-test": "^2.1.2",
"tailwindcss": "^3.4.16",
"typescript": "^5"
}