From 474a93374340fa3aa5997b66ac1fecbffa620375 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 05:40:51 +0000 Subject: Exclude test files from tsc build and rebuild production assets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test files use Node built-ins (fs, path) which aren't available to the browser-targeted tsconfig. Excluding *.test.ts from tsc is the standard Vite/Vitest pattern — vitest handles test type-checking separately. Also rebuilds web/dist/v3/ to include the CSS overflow fixes. https://claude.ai/code/session_0141nhxmYfoFPVPZ813K1XFD --- frontend-vanilla/src/mobile-overflow.test.ts | 2 +- frontend-vanilla/tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'frontend-vanilla') diff --git a/frontend-vanilla/src/mobile-overflow.test.ts b/frontend-vanilla/src/mobile-overflow.test.ts index ec421d5..516d787 100644 --- a/frontend-vanilla/src/mobile-overflow.test.ts +++ b/frontend-vanilla/src/mobile-overflow.test.ts @@ -52,7 +52,7 @@ describe('Mobile horizontal overflow prevention', () => { ); expect(itemDescBlock).not.toBeNull(); const mainBlock = itemDescBlock!.find( - block => !block.includes('img') && !block.includes('video') && !block.includes('pre') && !block.includes(' a') + (block: string) => !block.includes('img') && !block.includes('video') && !block.includes('pre') && !block.includes(' a') ); expect(mainBlock).toBeDefined(); expect(mainBlock).toMatch(/overflow-x:\s*hidden/); diff --git a/frontend-vanilla/tsconfig.json b/frontend-vanilla/tsconfig.json index 4ba8dd9..72af398 100644 --- a/frontend-vanilla/tsconfig.json +++ b/frontend-vanilla/tsconfig.json @@ -22,5 +22,6 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["src"] + "include": ["src"], + "exclude": ["src/**/*.test.ts", "src/**/*.perf.test.ts", "src/setupTests.ts"] } -- cgit v1.2.3