The best way to control Claude Code, Codex and more from any computer or phone
test(server): resolve the temp dir before matching the symlinked entrypoint (#9400)
Doksanbir committed
Oct 10, 2026 at 07:10 UTC
a3d150514152dc99333f48a687d4e89ab31a43e2
1 file changed
+3
-1
apps/server/src/entrypoint.test.ts
+3
-1
@@ -54,9 +54,11 @@ describe("isEntrypoint", () => {
54
NodeFS.writeFileSync(real, "");
55
NodeFS.symlinkSync(real, link);
56
57
+ // Node resolves the module URL to the real path, and on macOS the temp
58
+ // directory itself sits behind a symlink (`/var` -> `/private/var`).
59
expect(
60
isEntrypoint({
59
- moduleUrl: NodeURL.pathToFileURL(real).href,
61
+ moduleUrl: NodeURL.pathToFileURL(NodeFS.realpathSync(real)).href,
62
entryPath: link,
63
runtimeMain: undefined,
64
}),