| ... | ... | @@ -54,9 +54,11 @@ describe("isEntrypoint", () => { |
| 54 | 54 | NodeFS.writeFileSync(real, ""); |
| 55 | 55 | NodeFS.symlinkSync(real, link); |
| 56 | 56 | |
| 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 | 59 | expect( |
| 58 | 60 | isEntrypoint({ |
| 59 | | moduleUrl: NodeURL.pathToFileURL(real).href, |
| 61 | moduleUrl: NodeURL.pathToFileURL(NodeFS.realpathSync(real)).href, |
| 60 | 62 | entryPath: link, |
| 61 | 63 | runtimeMain: undefined, |
| 62 | 64 | }), |