@devries-cameron20 / t3code Mirror · read-only / commits / 2b6145b4c8
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 16:00 UTC

fix(web): browser tests no longer pick a port Windows has reserved (#24007)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Zach committed Nov 14, 2026 at 04:01 UTC 2b6145b4c81daec0080eb0e302073a07b237be4f
1 file changed +3 -2
apps/web/vite.config.ts
+3 -2
@@ -100,8 +100,9 @@ const unitTestProject = {
100 },
101 } satisfies TestProjectInlineConfiguration;
102
103 -// Hash checkout paths to ports 61000-64999; Vitest's fixed port collides under inherited strictPort.
104 -const browserTestApiPort = 61_000 + ((Hash.string(import.meta.dirname) >>> 0) % 4_000);
103 +// Hash checkout paths to ports 20000-23999; Vitest's fixed port collides under inherited strictPort.
104 +// Stay below ephemeral ranges: Windows reserves Hyper-V/WSL blocks there and EACCES is not skipped.
105 +const browserTestApiPort = 20_000 + ((Hash.string(import.meta.dirname) >>> 0) % 4_000);
106
107 const browserTestProject = {
108 extends: true,