aboutsummaryrefslogtreecommitdiff
path: root/test/harness.ts
diff options
context:
space:
mode:
authorGravatar Alex Lam S.L <alexlamsl@gmail.com> 2023-06-13 15:38:10 +0300
committerGravatar GitHub <noreply@github.com> 2023-06-13 05:38:10 -0700
commitc8d06f04d3f0eb783f8f315654a23eff5654015e (patch)
tree0bbb800360f732ae904f7cf42c43946532300726 /test/harness.ts
parent067a0235e49c52ac66df10cf2240b7ecb22eb599 (diff)
downloadbun-c8d06f04d3f0eb783f8f315654a23eff5654015e.tar.gz
bun-c8d06f04d3f0eb783f8f315654a23eff5654015e.tar.zst
bun-c8d06f04d3f0eb783f8f315654a23eff5654015e.zip
workaround quote escape issues for `bun run` (#3290)
fixes #53
Diffstat (limited to '')
-rw-r--r--test/harness.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/harness.ts b/test/harness.ts
index bfd159b18..b0cedba74 100644
--- a/test/harness.ts
+++ b/test/harness.ts
@@ -81,7 +81,7 @@ export function hideFromStackTrace(block: CallableFunction) {
}
export function tempDirWithFiles(basename: string, files: Record<string, string>) {
- const dir = fs.mkdtempSync(path.join(os.tmpdir(), basename + "_"));
+ const dir = fs.mkdtempSync(path.join(fs.realpathSync(os.tmpdir()), basename + "_"));
for (const [name, contents] of Object.entries(files)) {
fs.writeFileSync(path.join(dir, name), contents);
}