fix(ui): stub Node built-ins for fixture bundle
CI / check (push) Failing after 20s
CI / tests-unit (push) Skipped
CI / tests-integration (push) Skipped
CI / tests-ui (push) Skipped
CI / tests-imaging-browsers (push) Skipped
CI / tests-quality (push) Skipped
CI / preflight (push) Skipped
CI / deploy (push) Skipped

Replace platform: 'node' (incompatible with iife browser bundle) with
explicit aliases for node:async_hooks, node:crypto, node:fs/promises,
node:path pointing at e2e/ui/node-stubs.mjs. Provides shape-compatible
exports so esbuild can bundle the UI fixture without failing on Node
built-ins. Increase webServer timeout to 120s for reliable startup.
This commit is contained in:
openhands committed 2026-10-17 16:11:52 +02:00
1 parent 728999b2de
commit e870beb71c
3 files changed
+45 -3

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ export default defineConfig({
webServer: {
command: "node e2e/ui/fixture-server.mjs",
url: `${baseURL}/health`,
timeout: 60000,
timeout: 120000,
reuseExistingServer: true,
env: { UI_TEST_PORT: String(port) },
},