test(subprocess): drop obsolete cwd stubs

This commit is contained in:
Tianyi Cui
2026-07-30 17:25:44 +08:00
parent 6e4bdbf0df
commit d689907c12
2 changed files with 0 additions and 3 deletions

View File

@@ -66,7 +66,6 @@ function terminalHandle(): SubprocessTerminalHandle {
} }
class StubSubprocessService extends SubprocessService { class StubSubprocessService extends SubprocessService {
readonly cwd = '/tmp'
async resolveExecutable(command: string): Promise<string> { return command } async resolveExecutable(command: string): Promise<string> { return command }
spawn(_spec: SubprocessSpawnSpec): SubprocessHandle { throw new Error('unused') } spawn(_spec: SubprocessSpawnSpec): SubprocessHandle { throw new Error('unused') }
async spawnTerminal(_spec: SubprocessTerminalSpawnSpec): Promise<SubprocessTerminalHandle> { async spawnTerminal(_spec: SubprocessTerminalSpawnSpec): Promise<SubprocessTerminalHandle> {

View File

@@ -16,8 +16,6 @@ import type {
* is all an implementation owes the abstract class. * is all an implementation owes the abstract class.
*/ */
class StubSubprocessService extends SubprocessService { class StubSubprocessService extends SubprocessService {
readonly cwd = '/stub'
async resolveExecutable(command: string): Promise<string> { async resolveExecutable(command: string): Promise<string> {
return `/bin/${command}` return `/bin/${command}`
} }