@@ -5,18 +5,14 @@ const { test } = require('tap');
5
5
6
6
const startCLI = require ( './start-cli' ) ;
7
7
8
- test ( 'examples/empty .js' , ( t ) => {
9
- const script = Path . join ( 'examples' , 'empty .js' ) ;
8
+ test ( 'examples/three-lines .js' , ( t ) => {
9
+ const script = Path . join ( 'examples' , 'three-lines .js' ) ;
10
10
const cli = startCLI ( [ script ] ) ;
11
11
12
12
return cli . waitForInitialBreak ( )
13
13
. then ( ( ) => cli . waitForPrompt ( ) )
14
14
. then ( ( ) => {
15
15
t . match ( cli . output , 'debug>' , 'prints a prompt' ) ;
16
- t . match (
17
- cli . output ,
18
- '< Debugger listening on port 9229' ,
19
- 'forwards child output' ) ;
20
16
} )
21
17
. then ( ( ) => cli . command ( '["hello", "world"].join(" ")' ) )
22
18
. then ( ( ) => {
@@ -72,6 +68,7 @@ test('run after quit / restart', (t) => {
72
68
t . match ( cli . output , 'Use `run` to start the app again' ) ;
73
69
} )
74
70
. then ( ( ) => cli . stepCommand ( 'run' ) )
71
+ . then ( ( ) => cli . waitForInitialBreak ( ) )
75
72
. then ( ( ) => cli . waitForPrompt ( ) )
76
73
. then ( ( ) => {
77
74
t . match (
@@ -87,6 +84,7 @@ test('run after quit / restart', (t) => {
87
84
'steps to the 2nd line' ) ;
88
85
} )
89
86
. then ( ( ) => cli . stepCommand ( 'restart' ) )
87
+ . then ( ( ) => cli . waitForInitialBreak ( ) )
90
88
. then ( ( ) => {
91
89
t . match (
92
90
cli . output ,
@@ -100,6 +98,7 @@ test('run after quit / restart', (t) => {
100
98
t . match ( cli . output , 'Use `run` to start the app again' ) ;
101
99
} )
102
100
. then ( ( ) => cli . stepCommand ( 'run' ) )
101
+ . then ( ( ) => cli . waitForInitialBreak ( ) )
103
102
. then ( ( ) => cli . waitForPrompt ( ) )
104
103
. then ( ( ) => {
105
104
t . match (
0 commit comments