Skip to content

Commit

Permalink
test: fix garfish e2e failed (#4677)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 19, 2023
1 parent 39aab87 commit 7427bdc
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ export function createNonTTYLogger() {

prevPercentage = 100;
if (hasErrors) {
logger.error(`[${id}] compile failed in ${compileTime}`);
logger.error(`${id} compile failed in ${compileTime}`);
} else {
logger.success(`[${id}] compile succeed in ${compileTime}`);
logger.ready(`${id} compiled in ${compileTime}`);
}
}
// print progress when percentage increased by more than 10%
// because we don't want to spam the console
else if (current - prevPercentage > 10) {
prevPercentage = current;
logger.info(`[${id}] compile progress: ${current.toFixed(0)}%`);
logger.info(`${id} compile progress: ${current.toFixed(0)}%`);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ After successfully starting Dev Server, you can see the following logs:

```bash
info Starting dev server...
info Dev server running at:

> Local: http://localhost:8080
> Network: http://192.168.0.1:8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ After successfully starting Dev Server, you can see the following logs:

```bash
info Starting dev server...
info Dev server running at:

> Local: http://localhost:8081
> Network: http://192.168.0.1:8081
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ await builder.startDevServer();

```bash
info Starting dev server...
info Dev server running at:

> Local: http://localhost:8080
> Network: http://192.168.0.1:8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ await builder.startDevServer();

```bash
info Starting dev server...
info Dev server running at:

> Local: http://localhost:8081
> Network: http://192.168.0.1:8081
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/modernTestUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function runModernCommandDev(argv, stdOut, options = {}) {
function handleStdout(data) {
const message = data.toString();
const bootupMarkers = {
dev: /(App|Dev server|Preview server) running at/i,
serve: /(App|Dev server|Preview server) running at/i,
dev: /> Local:/i,
serve: /> Local:/i,
};
if (bootupMarkers[options.modernServe ? 'serve' : 'dev'].test(message)) {
if (!didResolve) {
Expand Down

0 comments on commit 7427bdc

Please sign in to comment.