build: add Vitest test dependencies and fix Docker build type error
Added devDependencies: vitest, @vitest/coverage-v8, happy-dom, @testing-library/react, jest-dom, user-event, and test scripts (test, test:watch, test:coverage). Removed @types/testing-library__jest-dom (redundant with jest-dom v6+, caused Docker build to fail with "Cannot find type definition file" error).
This commit is contained in:
Generated
+2453
-1
File diff suppressed because it is too large
Load Diff
+11
-2
@@ -6,7 +6,10 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"postinstall": "prisma generate"
|
||||
"postinstall": "prisma generate",
|
||||
"test": "vitest run --config ../test/vitest.config.ts",
|
||||
"test:watch": "vitest --config ../test/vitest.config.ts",
|
||||
"test:coverage": "vitest run --config ../test/vitest.config.ts --coverage"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "14.2.5",
|
||||
@@ -26,6 +29,12 @@
|
||||
"typescript": "^5",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"postcss": "^8",
|
||||
"autoprefixer": "^10.0.1"
|
||||
"autoprefixer": "^10.0.1",
|
||||
"vitest": "^1.6.0",
|
||||
"@vitest/coverage-v8": "^1.6.0",
|
||||
"happy-dom": "^14.12.0",
|
||||
"@testing-library/react": "^16.0.0",
|
||||
"@testing-library/jest-dom": "^6.4.0",
|
||||
"@testing-library/user-event": "^14.5.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user