Skip to content

Commit f59ee36

Browse files
fix(web): allow concurrent browser tests to retry ports (#1951)
1 parent 2fce84a commit f59ee36

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)