aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/mobile-overflow.test.ts
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-02-28 05:40:51 +0000
committerClaude <noreply@anthropic.com>2026-02-28 05:40:51 +0000
commit474a93374340fa3aa5997b66ac1fecbffa620375 (patch)
treec27cbbff9571475d7c9ac2d24cdb7aaac08ded95 /frontend-vanilla/src/mobile-overflow.test.ts
parentbaf3456557dea6fe83fc1ab65de2365346493411 (diff)
downloadneko-474a93374340fa3aa5997b66ac1fecbffa620375.tar.gz
neko-474a93374340fa3aa5997b66ac1fecbffa620375.tar.bz2
neko-474a93374340fa3aa5997b66ac1fecbffa620375.zip
Exclude test files from tsc build and rebuild production assets
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
Diffstat (limited to 'frontend-vanilla/src/mobile-overflow.test.ts')
-rw-r--r--frontend-vanilla/src/mobile-overflow.test.ts2
1 files changed, 1 insertions, 1 deletions
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/);