feat(tests): integrate Vitest for testing framework and add test scripts
- Added Vitest as a dependency for improved testing capabilities. - Updated package.json with new test scripts for running tests, watching, and coverage reporting. - Configured ESLint to recognize test runner scripts and included them in the linting process. - Modified tsconfig.json to include Vitest types for better TypeScript support in tests.
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
"cache:stats": "pnpm tsx scripts/cache-monitor.ts stats",
|
||||
"cache:cleanup": "pnpm tsx scripts/cache-monitor.ts cleanup",
|
||||
"cache:clear": "pnpm tsx scripts/cache-monitor.ts clear",
|
||||
"test": "node scripts/test-runner.js",
|
||||
"test:watch": "vitest --watch --reporter=verbose",
|
||||
"test:coverage": "vitest --coverage --reporter=verbose",
|
||||
"test:ui": "vitest --ui",
|
||||
"test:story-points": "pnpm tsx scripts/test-story-points.ts",
|
||||
"test:jira-fields": "pnpm tsx scripts/test-jira-fields.ts",
|
||||
"prettier:format": "prettier --write .",
|
||||
@@ -71,7 +75,8 @@
|
||||
"sharp": "^0.34.5",
|
||||
"tailwindcss": "^4.1.14",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "^5"
|
||||
"typescript": "^5",
|
||||
"vitest": "^2.1.8"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx,json,css,md}": [
|
||||
|
||||
Reference in New Issue
Block a user