From 0cef607859477ab7b28c79420f5984b83b66b6bd Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Mon, 20 Apr 2026 20:25:53 -0400 Subject: [PATCH] fix(ext/build): exclude test files from webpack tsc compile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Slice 4 spec review caught: router.test.ts's narrow chrome.* shim triggered 4 TS errors in webpack's ts-loader pass during production builds (partial mocks don't match the full chrome.* type surface). Plan's verbatim test body assumes tests aren't part of the build compile. Add src/**/__tests__/** to tsconfig exclude — tests still compile under Vitest's independent ts pipeline (42/42 passing). Co-Authored-By: Claude Opus 4.7 (1M context) --- extension/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/tsconfig.json b/extension/tsconfig.json index fde6d86..12146cb 100644 --- a/extension/tsconfig.json +++ b/extension/tsconfig.json @@ -15,5 +15,5 @@ "baseUrl": "." }, "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "wasm"] + "exclude": ["node_modules", "dist", "wasm", "src/**/__tests__/**"] }