fix(test): keep ui-e2e global setup lint-clean (#118763)

This commit is contained in:
Peter Steinberger
2026-08-03 09:55:37 -07:00
committed by GitHub
parent e7950261b6
commit 4553fada9c
+3 -2
View File
@@ -18,14 +18,15 @@ export default async function setup(project: TestProject) {
const executablePath = resolvePlaywrightChromiumExecutablePath(chromium.executablePath());
if (!canRunPlaywrightChromium(executablePath)) {
project.provide("controlUiE2eServerBaseUrl", null);
return;
// No-op teardown keeps both paths value-returning for Vitest's setup contract.
return () => {};
}
// Local full-suite runs can fan shards into separate processes in one checkout.
// Keep every build out of canonical dist so those processes cannot clobber it.
const tempDirs = createTempDirTracker();
const outDir = tempDirs.make("openclaw-ui-e2e-");
const server = await startBundledControlUiE2eServer(outDir).catch(async (error) => {
const server = await startBundledControlUiE2eServer(outDir).catch(async (error: unknown) => {
try {
tempDirs.cleanup();
} catch {}