We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54e8b60 commit 0e20eafCopy full SHA for 0e20eaf
test/return/result.js
@@ -5,11 +5,11 @@ import {setFixtureDirectory} from '../helpers/fixtures-directory.js';
5
setFixtureDirectory();
6
7
test('result.isTerminated is false if not killed and subprocess.kill() was called', async t => {
8
- const subprocess = execa('noop.js');
+ const subprocess = execa('forever.js');
9
t.true(subprocess.kill(0));
10
await new Promise(resolve => {
11
- subprocess.on('exit', () => {
12
- t.false(subprocess.kill(0));
+ subprocess.on('exit', (exitCode, signalCode) => {
+ console.log({exitCode, signalCode});
13
resolve();
14
});
15
0 commit comments