fix(ci): copy web/components to dist-test for xterm-theme test (#2891)
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) <noreply@anthropic.com>
This commit is contained in:
parent
142da7823a
commit
da7f5793be
1 changed files with 3 additions and 0 deletions
|
|
@ -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'));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue