Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/server/src/entrypoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down
Loading