chore: fix test

This commit is contained in:
Jack Wotherspoon
2026-03-09 15:43:22 +01:00
parent 8849319e8b
commit 84c3ee1f05

View File

@@ -54,7 +54,12 @@ describe('LoginWithGoogleRestartDialog', () => {
vi.useRealTimers();
_resetRelaunchStateForTesting();
originalSend = process.send;
process.send = vi.fn();
process.send = vi.fn((_message, callback) => {
if (typeof callback === 'function') {
callback(null);
}
return true;
});
});
afterEach(() => {