@@ -27,7 +27,9 @@ const path = require('path');
2727 await cli . waitFor ( / d i s c o n n e c t / ) ;
2828
2929 // Next run: With `breakOnException` it pauses in both places.
30- await cli . stepCommand ( 'r' ) ;
30+ await cli . command ( 'r' ) ;
31+ await cli . waitFor ( / D e b u g g e r a t t a c h e d \. / ) ;
32+ await cli . waitForPrompt ( ) ;
3133 await cli . waitForInitialBreak ( ) ;
3234 assert . deepStrictEqual ( cli . breakInfo , { filename : script , line : 1 } ) ;
3335 await cli . command ( 'breakOnException' ) ;
@@ -38,15 +40,19 @@ const path = require('path');
3840
3941 // Next run: With `breakOnUncaught` it only pauses on the 2nd exception.
4042 await cli . command ( 'breakOnUncaught' ) ;
41- await cli . stepCommand ( 'r' ) ; // Also, the setting survives the restart.
43+ await cli . command ( 'r' ) ; // Also, the setting survives the restart.
44+ await cli . waitFor ( / D e b u g g e r a t t a c h e d \. / ) ;
45+ await cli . waitForPrompt ( ) ;
4246 await cli . waitForInitialBreak ( ) ;
4347 assert . deepStrictEqual ( cli . breakInfo , { filename : script , line : 1 } ) ;
4448 await cli . stepCommand ( 'c' ) ;
4549 assert . ok ( cli . output . includes ( `exception in ${ script } :9` ) ) ;
4650
4751 // Next run: Back to the initial state! It should die again.
4852 await cli . command ( 'breakOnNone' ) ;
49- await cli . stepCommand ( 'r' ) ;
53+ await cli . command ( 'r' ) ;
54+ await cli . waitFor ( / D e b u g g e r a t t a c h e d \. / ) ;
55+ await cli . waitForPrompt ( ) ;
5056 await cli . waitForInitialBreak ( ) ;
5157 assert . deepStrictEqual ( cli . breakInfo , { filename : script , line : 1 } ) ;
5258 await cli . command ( 'c' ) ;
0 commit comments