Skip to content

Commit 18a4ba5

Browse files
wip. test checking
1 parent f93f434 commit 18a4ba5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/devextreme-cli/src/utility/run-command.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = function(commandName, args = [], customConfig = {}) {
2525
});
2626

2727
if(config.detached) {
28+
proc.unref();
2829
resolve({ proc });
2930
}
3031
});

packages/devextreme-cli/testing/nextjs-server.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,17 @@ module.exports = class NextJsServer {
3232
detached: true,
3333
stdio: 'ignore',
3434
}));
35-
36-
this.proc.unref();
3735
}
3836

3937
async stop() {
4038
console.log('-----NEXTJS SERVER-STOP---process.platform->', !!this.proc, process.platform);
4139
if(this.proc) {
42-
// process.kill(-this.proc.pid);
40+
4341
this.proc.kill('SIGTERM');
4442
await new Promise((resolve) => setTimeout(resolve, 1000));
4543
this.proc.kill('SIGKILL');
4644
await new Promise((resolve) => setTimeout(resolve, 1000));
45+
process.kill(this.proc.pid);
4746
}
4847

4948
if(process.platform === 'win32') {

0 commit comments

Comments
 (0)