Skip to content

Commit 4dc01fe

Browse files
wip. checking test for nextjs-ts add logs
1 parent d76935a commit 4dc01fe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ module.exports = function(commandName, args = [], customConfig = {}) {
2626
code ? reject(code) : resolve();
2727
});
2828
} else {
29-
proc.stdout.on('data', (data) => {
29+
console.log('------proc.stdout---->', proc.stdout);
30+
proc.stdout && proc.stdout.on('data', (data) => {
3031
const output = data.toString();
3132
console.log('SERVER STARTED!\n', output);
3233
console.log('----runCommand --resolve---->');
33-
resolve();
3434
});
35+
resolve();
3536
}
3637
});
3738

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module.exports = class DevServer {
2323
startedPromise = runCommand('npm', ['run', 'start'], {
2424
cwd: this.env.appPath,
2525
noExit: true,
26+
detached: true,
2627
// https://github.com/facebook/create-react-app/issues/3657
2728
env: Object.assign(process.env, { CI: false })
2829
});

0 commit comments

Comments
 (0)