From d7236559da689304588751c555e99849c93433ae Mon Sep 17 00:00:00 2001 From: Shay Date: Fri, 12 Jun 2026 12:07:57 -0700 Subject: [PATCH] fix(workbench): exclude e2e/ from vitest collection Reconciliation on rebase over R0a (#709): vitest's default include pattern collects e2e/*.spec.ts and fails on Playwright imports. e2e/ belongs to 'pnpm test:e2e'; vitest owns src/. Verified post-rebase: vitest 27 files/181 tests EXIT=0 + playwright 12/12. --- workbench-ui/vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workbench-ui/vite.config.ts b/workbench-ui/vite.config.ts index b576e4f7..8d06a60b 100644 --- a/workbench-ui/vite.config.ts +++ b/workbench-ui/vite.config.ts @@ -1,5 +1,5 @@ import react from "@vitejs/plugin-react"; -import { defineConfig } from "vitest/config"; +import { configDefaults, defineConfig } from "vitest/config"; export default defineConfig({ plugins: [react()], @@ -7,6 +7,8 @@ export default defineConfig({ environment: "happy-dom", setupFiles: ["./src/test/setup.ts"], globals: true, + // e2e/ belongs to Playwright (pnpm test:e2e), not vitest. + exclude: [...configDefaults.exclude, "e2e/**"], // Fail fast instead of hanging to a CI wall (Wave R brief R0a). // A hung worker at teardown was previously an indefinite hang; these // caps convert any residual live-handle leak into a loud failure.