Skip to content

Commit

Permalink
logging react toremove
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Apr 7, 2021
1 parent b84f670 commit 02a0994
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/cli-e2e/__tests__/react.specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,24 @@ describe('ui', () => {
beforeAll(async () => {
browser = await getNewBrowser();
processManager = new ProcessManager();
console.log('Start build');
const buildProcess = setupUIProject(
processManager,
'ui:create:react',
projectName
);

console.log('Build ongoing');
await new Promise<void>((resolve) => {
buildProcess.on('exit', async () => {
resolve();
});
});

console.log('Complete build');
console.log('Start server');
const startServerProcess = processManager.spawn('npm', ['run', 'start'], {
cwd: getProjectPath(projectName),
});

console.log('Server ongoing');
await new Promise<void>((resolve) => {
startServerProcess.stdout.on('data', async (data) => {
if (
Expand All @@ -50,6 +52,7 @@ describe('ui', () => {
}
});
});
console.log('Server ready');
}, 15 * 60e3);

beforeEach(async () => {
Expand Down

0 comments on commit 02a0994

Please sign in to comment.