Skip to content

Commit e4fbc09

Browse files
wip. test checking
1 parent 32b73c9 commit e4fbc09

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,21 @@ module.exports = class NextJsServer {
2929
console.log('----RUN START SERVER CMD------>');
3030
({ proc: this.proc } = await runCommand('npx', ['next', 'start', `-p ${this.port}`], {
3131
cwd: this.env.appPath,
32-
detached: true
32+
detached: true,
33+
stdio: 'ignore',
3334
}));
35+
36+
this.proc.unref();
3437
}
3538

3639
async stop() {
3740
console.log('-----NEXTJS SERVER-STOP---process.platform->', !!this.proc, process.platform);
3841
if(this.proc) {
39-
this.proc.kill('SIGTERM');
40-
await new Promise((resolve) => setTimeout(resolve, 1000));
41-
this.proc.kill('SIGKILL');
42-
await new Promise((resolve) => setTimeout(resolve, 1000));
42+
process.kill(-this.proc.pid);
43+
// this.proc.kill('SIGTERM');
44+
// await new Promise((resolve) => setTimeout(resolve, 1000));
45+
// this.proc.kill('SIGKILL');
46+
// await new Promise((resolve) => setTimeout(resolve, 1000));
4347
}
4448

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

0 commit comments

Comments
 (0)