You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/return/result.js
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -111,13 +111,16 @@ test('result.isTerminated is false if not killed', async t => {
111
111
t.false(isTerminated);
112
112
});
113
113
114
-
test('result.isTerminated is false if not killed and subprocess.kill() was called',asynct=>{
115
-
constsubprocess=execa('noop.js');
116
-
subprocess.kill(0);
117
-
t.true(subprocess.killed);
118
-
const{isTerminated}=awaitsubprocess;
119
-
t.false(isTerminated);
120
-
});
114
+
// Remove the condition after fixing the bug at https://github.com/sindresorhus/execa/issues/1193
115
+
if(!isWindows){
116
+
test('result.isTerminated is false if not killed and subprocess.kill() was called',asynct=>{
117
+
constsubprocess=execa('noop.js');
118
+
subprocess.kill(0);
119
+
t.true(subprocess.killed);
120
+
const{isTerminated}=awaitsubprocess;
121
+
t.false(isTerminated);
122
+
});
123
+
}
121
124
122
125
test('result.isTerminated is false if not killed, in sync mode',t=>{
0 commit comments