Skip to content

Commit 785efbd

Browse files
wip. test checking
1 parent 7df020b commit 785efbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = class NextJsServer {
1111
async start() {
1212
this.stop();
1313
console.log('----RUN START SERVER CMD------>');
14-
({ proc: this.proc } = await runCommand('npm', ['run', 'start'], {
14+
({ proc: this.proc } = await runCommand('npm', ['run', 'start', `-p ${this.port}`], {
1515
cwd: this.env.appPath,
1616
detached: true
1717
}));
@@ -23,6 +23,7 @@ module.exports = class NextJsServer {
2323
this.proc.kill('SIGKILL');
2424

2525
if(process.platform !== 'win32') {
26+
console.log(`-----NEXTJS SERVER-exec kill for port ${this.port} ---->`);
2627
try {
2728
execSync(`lsof -i :${this.port} -t | xargs kill -9`, { stdio: 'ignore' });
2829
await new Promise((resolve) => setTimeout(resolve, 1000));

0 commit comments

Comments
 (0)