From a280cf34f53b5691068932bdc2d6d2438f9860d1 Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Sat, 12 Sep 2026 22:04:16 +0800 Subject: [PATCH] test: canonicalize browser notices fixture paths --- scripts/browser-bundled-externals.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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({