diff --git a/scripts/browser-bundled-externals.spec.ts b/scripts/browser-bundled-externals.spec.ts index 0607c99ae5..510c8ff6f2 100644 --- a/scripts/browser-bundled-externals.spec.ts +++ b/scripts/browser-bundled-externals.spec.ts @@ -1,4 +1,4 @@ -import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, symlinkSync, unlinkSync, writeFileSync } from 'node:fs' +import { existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync, symlinkSync, unlinkSync, writeFileSync } from 'node:fs' import { createRequire } from 'node:module' import { tmpdir } from 'node:os' import { dirname, join, resolve } from 'node:path' @@ -29,7 +29,7 @@ afterEach(() => { }) function fixture(): string { - const root = mkdtempSync(join(tmpdir(), 'dsh-browser-notices-')) + const root = realpathSync.native(mkdtempSync(join(tmpdir(), 'dsh-browser-notices-'))) roots.push(root) write(root, 'package.json', '{"type":"module"}') write(root, 'tsconfig.base.json', JSON.stringify({