Skip to content

Commit 5e45312

Browse files
fix(web): allow concurrent browser tests to retry ports
1 parent 934037c commit 5e45312

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/web/vitest.browser.config.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,21 @@ export default mergeConfig(
1414
"~": srcPath,
1515
},
1616
},
17+
server: {
18+
// The app dev server uses a fixed port, but browser tests need to allow
19+
// concurrent runs to claim the next available port.
20+
strictPort: false,
21+
},
1722
test: {
1823
include: ["src/components/**/*.browser.tsx"],
1924
browser: {
2025
enabled: true,
2126
provider: playwright(),
2227
instances: [{ browser: "chromium" }],
2328
headless: true,
29+
api: {
30+
strictPort: false,
31+
},
2432
},
2533
testTimeout: 30_000,
2634
hookTimeout: 30_000,

0 commit comments

Comments
 (0)