maint(web): fix starting local dev server for e2e tests
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled

Starting the local dev server before running the e2e tests with
`web/build.sh start` didn't work on Windows. This change now directly
calls `node` to start the server which seems to work cross-platform.

Fixes: #15895
Build-bot: skip build:web
Test-bot: skip
This commit is contained in:
Eberhard Beilharz 2026-05-13 11:33:49 +02:00
parent 3a25613114
commit e593c458b0
No known key found for this signature in database
GPG key ID: E9140597606020D3

View file

@ -76,7 +76,10 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: `"${KEYMAN_ROOT}/node_modules/.bin/gosh" "../../../../build.sh start"`,
// Normally we'd run `web/build.sh start` or `gosh web/build.sh start`
// here, but that's causing problems on Windows.
command: 'node web/src/tools/testing/test-server/index.cjs',
cwd: KEYMAN_ROOT,
url: 'http://localhost:3000',
reuseExistingServer: !process.env.KEYMAN_IS_CI_BUILD,
},