Skip to content

Commit 13bc042

Browse files
authored
fix(adapter): pipe dev server output to console (#35)
* fix(adapter): pipe dev server output to console * fix tests
1 parent cc4070d commit 13bc042

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/create-config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export const createStencilPlaywrightConfig = async (
5959
reuseExistingServer: !!!process.env.CI,
6060
// Max time to wait for dev server to start before aborting, defaults to 60000 (60 seconds)
6161
timeout: overrides?.webServerTimeout ?? undefined,
62+
// Pipe the dev server output to the console
63+
// Gives visibility to the developer if the dev server fails to start
64+
stdout: 'pipe',
6265
},
6366
...playwrightOverrides,
6467
};

src/test/create-config.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('createStencilPlaywrightConfig', () => {
2424
url: 'http://localhost:3333/ping',
2525
reuseExistingServer: !process.env.CI,
2626
timeout: undefined,
27+
stdout: 'pipe',
2728
},
2829
});
2930
});
@@ -45,6 +46,7 @@ describe('createStencilPlaywrightConfig', () => {
4546
url: 'http://localhost:3333/ping',
4647
reuseExistingServer: !process.env.CI,
4748
timeout: undefined,
49+
stdout: 'pipe',
4850
},
4951
});
5052
});

0 commit comments

Comments
 (0)