mirror of
https://github.com/keymanapp/keyman.git
synced 2026-11-03 09:37:47 +00:00
maint(web): fix starting local dev server for e2e tests
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
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:
parent
3a25613114
commit
e593c458b0
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue