mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 12:34:38 -07:00
Co-authored-by: Gaurav <39389231+gsquared94@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,8 @@ const mockStdin = {
|
||||
on: vi.fn(),
|
||||
removeListener: vi.fn(),
|
||||
destroy: vi.fn(),
|
||||
listeners: vi.fn().mockReturnValue([]),
|
||||
listenerCount: vi.fn().mockReturnValue(0),
|
||||
};
|
||||
|
||||
describe('readStdin', () => {
|
||||
@@ -48,6 +50,8 @@ describe('readStdin', () => {
|
||||
if (event === 'error') onErrorHandler = handler as (err: Error) => void;
|
||||
},
|
||||
);
|
||||
mockStdin.listeners.mockReturnValue([]);
|
||||
mockStdin.listenerCount.mockReturnValue(0);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user