Skip to content

Commit a3d1505

Browse files
authored
test(server): resolve the temp dir before matching the symlinked entrypoint (pingdotgg#9400)
1 parent f02002a commit a3d1505

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/server/src/entrypoint.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ describe("isEntrypoint", () => {
5454
NodeFS.writeFileSync(real, "");
5555
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`).
5759
expect(
5860
isEntrypoint({
59-
moduleUrl: NodeURL.pathToFileURL(real).href,
61+
moduleUrl: NodeURL.pathToFileURL(NodeFS.realpathSync(real)).href,
6062
entryPath: link,
6163
runtimeMain: undefined,
6264
}),

0 commit comments

Comments
 (0)