feat(test): add comprehensive test suite and testing infrastructure
- Add vitest configuration with coverage reporting - Create test setup file with DOM mocks - Add tests for state management, helpers, and tool configurations - Update tsconfig and package.json for testing support - Clean up unused comments and improve code style
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"types": ["vite/client"],
|
||||
"types": ["vite/client", "vitest/globals"], // Added vitest/globals
|
||||
|
||||
/* Easier module handling for Vite */
|
||||
"moduleResolution": "bundler",
|
||||
@@ -53,9 +53,14 @@
|
||||
/* Quality-of-life options */
|
||||
"isolatedModules": true,
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
/* Path aliases (optional but helpful) */
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["src"],
|
||||
"include": ["src", "src/**/*.ts"], // Updated to include all TS files
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user