From a3d150514152dc99333f48a687d4e89ab31a43e2 Mon Sep 17 00:00:00 2001 From: Doksanbir Date: Sat, 10 Oct 2026 07:10:45 +0300 Subject: [PATCH] test(server): resolve the temp dir before matching the symlinked entrypoint (#9400) --- apps/server/src/entrypoint.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/entrypoint.test.ts b/apps/server/src/entrypoint.test.ts index bf8247fd4295f22f07efd71c710fdb733d507469..509008f96afddb3cb118f500cab7d3e59b8da23e 100644 --- a/apps/server/src/entrypoint.test.ts +++ b/apps/server/src/entrypoint.test.ts @@ -54,9 +54,11 @@ describe("isEntrypoint", () => { NodeFS.writeFileSync(real, ""); NodeFS.symlinkSync(real, link); + // Node resolves the module URL to the real path, and on macOS the temp + // directory itself sits behind a symlink (`/var` -> `/private/var`). expect( isEntrypoint({ - moduleUrl: NodeURL.pathToFileURL(real).href, + moduleUrl: NodeURL.pathToFileURL(NodeFS.realpathSync(real)).href, entryPath: link, runtimeMain: undefined, }), -- 2.54.0