Skip to content

Commit d36972e

Browse files
authored
fix(adapter): update default command used for webServer process (#36)
1 parent 13bc042 commit d36972e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/create-config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const createStencilPlaywrightConfig = async (
5454
baseURL,
5555
},
5656
webServer: {
57-
command: overrides?.webServerCommand ?? 'npm start -- --no-open',
57+
command: overrides?.webServerCommand ?? 'stencil build --dev --watch --serve --no-open',
5858
url: webServerUrl,
5959
reuseExistingServer: !!!process.env.CI,
6060
// Max time to wait for dev server to start before aborting, defaults to 60000 (60 seconds)

src/test/create-config.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('createStencilPlaywrightConfig', () => {
2020
baseURL: 'http://localhost:3333',
2121
},
2222
webServer: {
23-
command: 'npm start -- --no-open',
23+
command: 'stencil build --dev --watch --serve --no-open',
2424
url: 'http://localhost:3333/ping',
2525
reuseExistingServer: !process.env.CI,
2626
timeout: undefined,

0 commit comments

Comments
 (0)