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

This commit is contained in:
Doksanbir authored and GitHub committed 2026-10-10 04:10:45 +00:00
1 parent f02002ab95
commit a3d1505141
1 file changed
+3 -1
+3 -1
View File
@@ -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,
}),