fix(cli): Improve proxy test isolation and sandbox path resolution (#6555)

This commit is contained in:
kookyleo
2025-08-23 12:43:03 +08:00
committed by GitHub
parent 494a996ff8
commit 5bba15b038
6 changed files with 230 additions and 91 deletions

View File

@@ -1422,11 +1422,17 @@ describe('InputPrompt', () => {
);
stdin.write('\x12');
await wait();
// Verify reverse search is active
expect(stdout.lastFrame()).toContain('(r:)');
stdin.write('\t');
await waitFor(() => {
expect(stdout.lastFrame()).not.toContain('(r:)');
});
await waitFor(
() => {
expect(stdout.lastFrame()).not.toContain('(r:)');
},
{ timeout: 5000 },
); // Increase timeout
expect(props.buffer.setText).toHaveBeenCalledWith('echo hello');
unmount();