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'));