@@ -62,7 +62,9 @@ describe('IdeTrustChangeDialog', () => {
6262 } ) ;
6363
6464 it ( 'calls relaunchApp when "r" is pressed' , async ( ) => {
65- const relaunchAppSpy = vi . spyOn ( processUtils , 'relaunchApp' ) ;
65+ const relaunchAppSpy = vi
66+ . spyOn ( processUtils , 'relaunchApp' )
67+ . mockResolvedValue ( undefined ) ;
6668 const { stdin, waitUntilReady, unmount } = renderWithProviders (
6769 < IdeTrustChangeDialog reason = "NONE" /> ,
6870 ) ;
@@ -78,7 +80,9 @@ describe('IdeTrustChangeDialog', () => {
7880 } ) ;
7981
8082 it ( 'calls relaunchApp when "R" is pressed' , async ( ) => {
81- const relaunchAppSpy = vi . spyOn ( processUtils , 'relaunchApp' ) ;
83+ const relaunchAppSpy = vi
84+ . spyOn ( processUtils , 'relaunchApp' )
85+ . mockResolvedValue ( undefined ) ;
8286 const { stdin, waitUntilReady, unmount } = renderWithProviders (
8387 < IdeTrustChangeDialog reason = "CONNECTION_CHANGE" /> ,
8488 ) ;
@@ -94,7 +98,9 @@ describe('IdeTrustChangeDialog', () => {
9498 } ) ;
9599
96100 it ( 'does not call relaunchApp when another key is pressed' , async ( ) => {
97- const relaunchAppSpy = vi . spyOn ( processUtils , 'relaunchApp' ) ;
101+ const relaunchAppSpy = vi
102+ . spyOn ( processUtils , 'relaunchApp' )
103+ . mockResolvedValue ( undefined ) ;
98104 const { stdin, waitUntilReady, unmount } = renderWithProviders (
99105 < IdeTrustChangeDialog reason = "CONNECTION_CHANGE" /> ,
100106 ) ;
0 commit comments