tests: fix e2e tests (#5706)

This commit is contained in:
Jack Wotherspoon 2025-08-06 16:46:50 -04:00 committed by GitHub
parent e3e7677753
commit ad5d2af4e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -169,13 +169,13 @@ export class TestRig {
};
if (typeof promptOrOptions === 'string') {
command += ` --prompt "${promptOrOptions}"`;
command += ` --prompt ${JSON.stringify(promptOrOptions)}`;
} else if (
typeof promptOrOptions === 'object' &&
promptOrOptions !== null
) {
if (promptOrOptions.prompt) {
command += ` --prompt "${promptOrOptions.prompt}"`;
command += ` --prompt ${JSON.stringify(promptOrOptions.prompt)}`;
}
if (promptOrOptions.stdin) {
execOptions.input = promptOrOptions.stdin;