tsconfig.vitest.json
670 bytes
| 1 | { |
|---|---|
| 2 | "extends": "./tsconfig.app.json", |
| 3 | |
| 4 | // Override to include only test files and clear exclusions. |
| 5 | // Application code imported in tests is automatically included via module resolution. |
| 6 | "include": ["src/**/__tests__/**/*", "env.d.ts"], |
| 7 | "exclude": [], |
| 8 | |
| 9 | "compilerOptions": { |
| 10 | // Vitest runs in a different environment than the application code. |
| 11 | // Adjust lib and types accordingly. |
| 12 | "lib": [], |
| 13 | "types": ["node", "jsdom"], |
| 14 | |
| 15 | // `vue-tsc --build` produces a .tsbuildinfo file for incremental type-checking. |
| 16 | // Specified here to keep it out of the root directory. |
| 17 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo" |
| 18 | } |
| 19 | } |
| 20 | |