From 38b920635e02762eab7843aec429f578bc191d5a Mon Sep 17 00:00:00 2001 From: YagUber <20715993+YagUber@users.noreply.github.com> Date: Sat, 28 Mar 2026 15:42:37 -0500 Subject: [PATCH] fix: resolve nested test file discovery for vitest and tsconfig --- web/eslint.config.ts | 2 +- web/tsconfig.vitest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/eslint.config.ts b/web/eslint.config.ts index cd447ee..ba0bbaa 100644 --- a/web/eslint.config.ts +++ b/web/eslint.config.ts @@ -29,7 +29,7 @@ export default defineConfigWithVueTs( { ...pluginVitest.configs.recommended, - files: ['src/**/__tests__/*'], + files: ['src/**/__tests__/**/*'] }, ...pluginOxlint.buildFromOxlintConfigFile('.oxlintrc.json'), diff --git a/web/tsconfig.vitest.json b/web/tsconfig.vitest.json index ff1d8c9..38c3894 100644 --- a/web/tsconfig.vitest.json +++ b/web/tsconfig.vitest.json @@ -3,7 +3,7 @@ // 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"], + "include": ["src/**/__tests__/**/*", "env.d.ts"], "exclude": [], "compilerOptions": {