diff options
author | 2023-06-13 15:38:10 +0300 | |
---|---|---|
committer | 2023-06-13 05:38:10 -0700 | |
commit | c8d06f04d3f0eb783f8f315654a23eff5654015e (patch) | |
tree | 0bbb800360f732ae904f7cf42c43946532300726 /test/harness.ts | |
parent | 067a0235e49c52ac66df10cf2240b7ecb22eb599 (diff) | |
download | bun-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.ts | 2 |
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); } |