mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-06 01:16:00 -06:00
build: migrate to pnpm and add vitest testing infrastructure
- Replace Yarn with pnpm as package manager - Add Vitest with React Testing Library and happy-dom - Configure test setup and add test scripts (test, test:ui, test:run) - Add IPCard component and update lookup components - Remove unused react-ogp dependency - Add type-check script
This commit is contained in:
16
package.json
16
package.json
@@ -6,7 +6,11 @@
|
||||
"build": "next build",
|
||||
"dev": "next dev",
|
||||
"lint": "next lint",
|
||||
"start": "next start"
|
||||
"start": "next start",
|
||||
"test": "vitest",
|
||||
"test:ui": "vitest --ui",
|
||||
"test:run": "vitest run",
|
||||
"type-check": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@headlessui/react": "^2.0.3",
|
||||
@@ -19,7 +23,6 @@
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-hook-form": "^7.42.1",
|
||||
"react-ogp": "^0.0.3",
|
||||
"react-timeago": "^7.2.0",
|
||||
"sass": "^1.57.1",
|
||||
"true-myth": "^7.1.0",
|
||||
@@ -27,6 +30,8 @@
|
||||
"zod": "^3.20.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/jest-dom": "^6.9.1",
|
||||
"@testing-library/react": "^16.3.0",
|
||||
"@types/node": "^18.11.18",
|
||||
"@types/prettier": "^2.7.2",
|
||||
"@types/react": "^18.0.26",
|
||||
@@ -34,18 +39,21 @@
|
||||
"@types/react-timeago": "^4.1.7",
|
||||
"@typescript-eslint/eslint-plugin": "^5.47.1",
|
||||
"@typescript-eslint/parser": "^5.47.1",
|
||||
"@vitest/ui": "^3.2.4",
|
||||
"autoprefixer": "^10.4.7",
|
||||
"eslint": "^8.30.0",
|
||||
"eslint-config-next": "13.1.1",
|
||||
"happy-dom": "^20.0.8",
|
||||
"postcss": "^8.4.14",
|
||||
"prettier": "^2.8.1",
|
||||
"prettier-plugin-tailwindcss": "^0.2.1",
|
||||
"tailwindcss": "^3.2.0",
|
||||
"type-fest": "^4.18.2",
|
||||
"typescript": "^4.9.4"
|
||||
"typescript": "^4.9.4",
|
||||
"vitest": "^3.2.4"
|
||||
},
|
||||
"ct3aMetadata": {
|
||||
"initVersion": "7.2.0"
|
||||
},
|
||||
"packageManager": "yarn@4.2.2"
|
||||
"packageManager": "pnpm@9.0.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user