unit test fixin
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 8m50s
This commit is contained in:
@@ -1,35 +1,28 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"typeRoots": ["./node_modules/@types", "./src/types"],
|
||||
"experimentalDecorators": true,
|
||||
"useDefineForClassFields": false,
|
||||
"module": "ESNext",
|
||||
"lib": [
|
||||
"ES2022",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"target": "ESNext",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||
"allowJs": false,
|
||||
"skipLibCheck": true,
|
||||
"types": [
|
||||
"node",
|
||||
"vite/client", // Add this line to include Vite's client-side types
|
||||
],
|
||||
"moduleResolution": "bundler",
|
||||
"esModuleInterop": true, // Often helpful for broader library compatibility
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
"allowJs": true,
|
||||
"jsx": "react-jsx",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
]
|
||||
},
|
||||
"allowImportingTsExtensions": true,
|
||||
"noEmit": true,
|
||||
"strict": true, // Enforcing strict mode is a best practice for new projects.
|
||||
"forceConsistentCasingInFileNames": true // Helps prevent casing-related import errors.
|
||||
"jsx": "react-jsx",
|
||||
// This line makes Vitest's global APIs (describe, it, expect) available everywhere
|
||||
// without needing to import them.
|
||||
"types": [
|
||||
"vitest/globals"
|
||||
]
|
||||
},
|
||||
"include": ["src", ".vitepress", "vite.config.ts", "vitest.config.ts"],
|
||||
"exclude": ["node_modules", "dist", "coverage"]
|
||||
// This is the most important part: It tells TypeScript to include ALL files
|
||||
// within the 'src' directory, including your new 'vite-env.d.ts' file.
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
Reference in New Issue
Block a user