test: uninstall cypress, add playwright

This commit is contained in:
yubintw
2025-03-15 19:22:09 +08:00
parent e4bacf8745
commit d8d08b9c7b
10 changed files with 223 additions and 3013 deletions

View File

@@ -1,6 +1,5 @@
{
"name": "frontend",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
@@ -8,7 +7,7 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"cy:test": "cypress run --headed --no-exit"
"test:e2e": "playwright test"
},
"dependencies": {
"axios": "^1.6.8",
@@ -16,14 +15,15 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@playwright/test": "^1.51.0",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.2",
"@types/node": "^22.13.10",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitejs/plugin-react": "^4.2.1",
"cypress": "^13.7.1",
"eslint": "^8.55.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",