test(server): resolve the temp dir before matching the symlinked entrypoint (#9400)
This commit is contained in:
1 parent
f02002ab95
commit
a3d1505141
1 file changed
+3
-1
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user