diff --git a/test/harness.ts b/test/harness.ts index 95a84519d3..b8f68d2fa9 100644 --- a/test/harness.ts +++ b/test/harness.ts @@ -1041,7 +1041,7 @@ export function mergeWindowEnvs(envs: Record[]) { } export function tmpdirSync(pattern: string = "bun.test.") { - return fs.mkdtempSync(join(fs.realpathSync(os.tmpdir()), pattern)); + return fs.mkdtempSync(join(fs.realpathSync.native(os.tmpdir()), pattern)); } export async function runBunInstall(