Skip to content

Commit df447db

Browse files
wip. checking test for nextjs-ts add logs
1 parent 61df24d commit df447db

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/applications.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
APPROACH:
20-
- react
2120
- nextjs-ts
2221
NODE:
2322
- 18

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,21 @@ module.exports = class DevServer {
1717
if(startedPromise) {
1818
await startedPromise.kill();
1919
}
20-
console.log('-----start----->');
21-
startedPromise = runCommand('npm', ['run', 'start'], {
22-
cwd: this.env.appPath,
23-
// https://github.com/facebook/create-react-app/issues/3657
24-
env: Object.assign(process.env, { CI: false })
20+
21+
await new Promise((resolve) => {
22+
console.log('-----start----->');
23+
startedPromise = runCommand('npm', ['run', 'start'], {
24+
cwd: this.env.appPath,
25+
// https://github.com/facebook/create-react-app/issues/3657
26+
env: Object.assign(process.env, { CI: false })
27+
});
28+
29+
const startIntervalId = setInterval(() => {
30+
if(!startedPromise) {
31+
clearInterval(startIntervalId);
32+
resolve();
33+
}
34+
}, 100);
2535
});
2636
} else {
2737
await webServer.start(this.env.deployPath);

0 commit comments

Comments
 (0)