Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(e2e-tests): add TestShell#eventually and refactor TestShell#executeLine and TestShell#waitForPrompt #2171

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Trim input to writeInputLine
kraenhansen committed Oct 8, 2024

Verified

This commit was signed with the committer’s verified signature.
kraenhansen Kræn Hansen
commit 6e690ffb9bff5b0c3cdd21b98c724fa69c20961f
2 changes: 1 addition & 1 deletion packages/e2e-tests/test/test-shell.ts
Original file line number Diff line number Diff line change
@@ -287,7 +287,7 @@ export class TestShell {
}

writeInputLine(chars: string): void {
this.writeInput(`${chars}\n`);
this.writeInput(`${chars.trim()}\n`);
}

async executeLine(line: string): Promise<string> {