Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): allow concurrent browser tests to retry ports (#1951)

Ashvin Nihalanif59ee36bf17e
diff --git a/apps/web/vitest.browser.config.ts b/apps/web/vitest.browser.config.ts
index b152d8221..ca02f2e9f 100644
--- a/apps/web/vitest.browser.config.ts
+++ b/apps/web/vitest.browser.config.ts
@@ -14,6 +14,11 @@ export default mergeConfig(
"~": srcPath,
},
},
+ server: {
+ // The app dev server uses a fixed port, but browser tests need to allow
+ // concurrent runs to claim the next available port.
+ strictPort: false,
+ },
test: {
include: ["src/components/**/*.browser.tsx"],
browser: {
@@ -21,6 +26,9 @@ export default mergeConfig(
provider: playwright(),
instances: [{ browser: "chromium" }],
headless: true,
+ api: {
+ strictPort: false,
+ },
},
testTimeout: 30_000,
hookTimeout: 30_000,