@@ -92,12 +92,12 @@ test('It should report an error on start', async (t) => {
92
92
await ps . waitForLine ( / v 1 / )
93
93
t . pass ( 'Restarted successfully after error fixed.' )
94
94
await ps . exit ( )
95
- replaceText ( 'with-error.ts' , '1' , `'1'` )
95
+ await replaceText ( 'with-error.ts' , '1' , `'1'` )
96
96
} )
97
97
98
- test ( 'It restart on non imported file ' , async ( t ) => {
98
+ test ( 'It should restart on adding not imported module ' , async ( t ) => {
99
99
const ps = spawnTsNodeDev ( '--respawn with-error.ts' , {
100
- //stdout: true,
100
+ // stdout: true,
101
101
env : {
102
102
TS_NODE_DEV_ERROR_RECOMPILE_TIMEOUT : 500 ,
103
103
} ,
@@ -109,7 +109,7 @@ test('It restart on non imported file', async (t) => {
109
109
await ps . waitForLine ( / v 1 / )
110
110
t . pass ( 'Restarted successfully after error fixed.' )
111
111
await ps . exit ( )
112
- replaceText ( 'dep-ts-error.ts' , 'string' , 'number' )
112
+ await replaceText ( 'dep-ts-error.ts' , 'string' , 'number' )
113
113
} )
114
114
115
115
const notFoundSource = `export const fn = (x: number) => {
@@ -119,7 +119,7 @@ const notFoundSource = `export const fn = (x: number) => {
119
119
120
120
test ( 'It restarts when not found module added' , async ( t ) => {
121
121
const ps = spawnTsNodeDev ( '--respawn with-not-found.ts' , {
122
- //stdout: true,
122
+ // stdout: true,
123
123
env : {
124
124
TS_NODE_DEV_ERROR_RECOMPILE_TIMEOUT : 250 ,
125
125
} ,
0 commit comments