mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-23 12:30:43 -07:00
fix(async): prevent missed async errors from bypassing catch handlers (#13714)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
@@ -22,10 +22,8 @@ vi.mock('./installationInfo.js', async () => {
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock(
|
||||
'./updateEventEmitter.js',
|
||||
async (importOriginal) =>
|
||||
await importOriginal<typeof import('./updateEventEmitter.js')>(),
|
||||
vi.mock('./updateEventEmitter.js', async (importOriginal) =>
|
||||
importOriginal<typeof import('./updateEventEmitter.js')>(),
|
||||
);
|
||||
|
||||
interface MockChildProcess extends EventEmitter {
|
||||
|
||||
Reference in New Issue
Block a user