diff --git a/tsconfig.vitest.json b/tsconfig.vitest.json index ff1d8c9..06dd490 100644 --- a/tsconfig.vitest.json +++ b/tsconfig.vitest.json @@ -2,8 +2,10 @@ "extends": "./tsconfig.app.json", // Override to include only test files and clear exclusions. - // Application code imported in tests is automatically included via module resolution. - "include": ["src/**/__tests__/*", "env.d.ts"], + // .vue files must be explicitly included so vue-tsc enables .vue module + // resolution for this project (relying on transitive module resolution + // from test imports is unreliable in `vue-tsc --build`). + "include": ["src/**/__tests__/*", "env.d.ts", "src/**/*.vue"], "exclude": [], "compilerOptions": {