test(subprocess): drop obsolete cwd stubs

This commit is contained in:
Tianyi Cui
2026-08-08 21:27:59 +08:00
parent 6e4bdbf0df
commit d689907c12
2 changed files with 0 additions and 3 deletions
@@ -66,7 +66,6 @@ function terminalHandle(): SubprocessTerminalHandle {
}
class StubSubprocessService extends SubprocessService {
readonly cwd = '/tmp'
async resolveExecutable(command: string): Promise<string> { return command }
spawn(_spec: SubprocessSpawnSpec): SubprocessHandle { throw new Error('unused') }
async spawnTerminal(_spec: SubprocessTerminalSpawnSpec): Promise<SubprocessTerminalHandle> {
@@ -16,8 +16,6 @@ import type {
* is all an implementation owes the abstract class.
*/
class StubSubprocessService extends SubprocessService {
readonly cwd = '/stub'
async resolveExecutable(command: string): Promise<string> {
return `/bin/${command}`
}