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
This commit is contained in:
1 parent
ddc4a93c36
commit
804572c8ff
2 files changed
+13
-4
No files matched your search
@@ -151,8 +151,10 @@ describe("TerminalManager", () => {
|
||||
ptyAdapter,
|
||||
historyLineLimit,
|
||||
shellResolver: options.shellResolver ?? (() => "/bin/bash"),
|
||||
subprocessChecker: options.subprocessChecker,
|
||||
subprocessPollIntervalMs: options.subprocessPollIntervalMs,
|
||||
...(options.subprocessChecker ? { subprocessChecker: options.subprocessChecker } : {}),
|
||||
...(options.subprocessPollIntervalMs
|
||||
? { subprocessPollIntervalMs: options.subprocessPollIntervalMs }
|
||||
: {}),
|
||||
});
|
||||
return { logsDir, ptyAdapter, manager };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user