From da7f5793be1fcafa37f30ac76ce4a8d7ff42f9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Fri, 27 Mar 2026 15:22:34 -0600 Subject: [PATCH] fix(ci): copy web/components to dist-test for xterm-theme test (#2891) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The xterm-theme test reads shell-terminal.tsx and main-session-terminal.tsx via readFileSync relative to import.meta.dirname. When compiled tests run from dist-test/, this resolves to dist-test/web/components/gsd/ — but only web/lib/ was being copied by compile-tests.mjs, causing the test to fail. Co-authored-by: Claude Opus 4.6 (1M context) --- scripts/compile-tests.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/compile-tests.mjs b/scripts/compile-tests.mjs index 066c02e9b..3d6ac5e57 100644 --- a/scripts/compile-tests.mjs +++ b/scripts/compile-tests.mjs @@ -130,6 +130,9 @@ async function main() { // Copy web/lib/ assets (tests import from ../../web/lib/ relative to dist-test/src/tests/) await copyAssets(join(ROOT, 'web', 'lib'), join(ROOT, 'dist-test', 'web', 'lib')); + // Copy web/components/ assets (xterm-theme test reads shell-terminal.tsx via import.meta.dirname) + await copyAssets(join(ROOT, 'web', 'components'), join(ROOT, 'dist-test', 'web', 'components')); + // Copy scripts/ non-TS files (.cjs etc) — some tests require() scripts directly await copyAssets(join(ROOT, 'scripts'), join(ROOT, 'dist-test', 'scripts'));