authorgravatar for ylcn91@users.noreply.github.comDoksanbir <ylcn91@users.noreply.github.com> 2026-10-10 07:10:45+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-10 04:10:45+00:00
loga3d150514152dc99333f48a687d4e89ab31a43e2
tree4e6e0720a1c531842414ce40d8a0068e91853c32
parentf02002ab95c94510ab23a592f19f669fc50da0e9
signature Signed by PGP key B5690EEEBB952194

test(server): resolve the temp dir before matching the symlinked entrypoint (#9400)


1 files changed, 3 insertions(+), 1 deletions(-)

apps/server/src/entrypoint.test.ts+3-1
...@@ -54,9 +54,11 @@ describe("isEntrypoint", () => {...@@ -54,9 +54,11 @@ describe("isEntrypoint", () => {
54 NodeFS.writeFileSync(real, "");54 NodeFS.writeFileSync(real, "");
55 NodeFS.symlinkSync(real, link);55 NodeFS.symlinkSync(real, link);
5656
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`).
57 expect(59 expect(
58 isEntrypoint({60 isEntrypoint({
59 moduleUrl: NodeURL.pathToFileURL(real).href,61 moduleUrl: NodeURL.pathToFileURL(NodeFS.realpathSync(real)).href,
60 entryPath: link,62 entryPath: link,
61 runtimeMain: undefined,63 runtimeMain: undefined,
62 }),64 }),