diff options
| author | Seth Troisi <[email protected]> | 2025-06-10 20:32:00 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-10 20:32:00 -0700 |
| commit | fb6e2927f7720680da344e4a05a577eab932e1bf (patch) | |
| tree | 7c3c0e67c2a3925e39ef7701154e57b310fcb578 /packages/cli/src/nonInteractiveCli.test.ts | |
| parent | 3372fd8df85e8ab6fcbcfd09c02f821ada6d4c6e (diff) | |
Remove unneeded `mockRestore()`s from tests (#919)
Diffstat (limited to 'packages/cli/src/nonInteractiveCli.test.ts')
| -rw-r--r-- | packages/cli/src/nonInteractiveCli.test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/cli/src/nonInteractiveCli.test.ts b/packages/cli/src/nonInteractiveCli.test.ts index c8fb1d33..4e7fd727 100644 --- a/packages/cli/src/nonInteractiveCli.test.ts +++ b/packages/cli/src/nonInteractiveCli.test.ts @@ -35,6 +35,7 @@ describe('runNonInteractive', () => { let mockProcessExit: ReturnType<typeof vi.fn>; beforeEach(() => { + vi.resetAllMocks(); mockChat = { sendMessageStream: vi.fn(), }; @@ -201,7 +202,6 @@ describe('runNonInteractive', () => { expect(mockProcessStdoutWrite).toHaveBeenCalledWith( 'Could not complete request.', ); - consoleErrorSpy.mockRestore(); }); it('should exit with error if sendMessageStream throws initially', async () => { @@ -217,6 +217,5 @@ describe('runNonInteractive', () => { 'Error processing input:', apiError, ); - consoleErrorSpy.mockRestore(); }); }); |
