History

Tighten test fixtures for terminal options and event typing

- Pass subprocess test options only when defined in `terminalManager` tests - Narrow web store terminal event fixtures to `started`/`activity` event shapes

Julius Marminge committed 9 months ago

Commit 804572c1 parent ddc4a932 files · +13 −4Browse files

Showing the changes to apps/server (1 of 2 files). Show all

Unified · Split

apps/server/src/terminalManager.test.ts+4−2
@@ -151,8 +151,10 @@ describe("TerminalManager", () => { · 150 unmodified lines
151 ptyAdapter,151 ptyAdapter,
152 historyLineLimit,152 historyLineLimit,
153 shellResolver: options.shellResolver ?? (() => "/bin/bash"),153 shellResolver: options.shellResolver ?? (() => "/bin/bash"),
154 subprocessChecker: options.subprocessChecker,154 ...(options.subprocessChecker ? { subprocessChecker: options.subprocessChecker } : {}),
155 subprocessPollIntervalMs: options.subprocessPollIntervalMs,155 ...(options.subprocessPollIntervalMs
156 ? { subprocessPollIntervalMs: options.subprocessPollIntervalMs }
157 : {}),
156 });158 });
157 return { logsDir, ptyAdapter, manager };159 return { logsDir, ptyAdapter, manager };
158 }160 }