tempDir

tcmts.cli.test.e2e.harness.tempDir · #eh3o6h6v · term · runs on the server

uses node:fs

A new empty directory, resolved through symlinks; the space in its name catches quoting bugs.

import fs from "node:fs";
import os from "node:os";
import path from "node:path";

export const tempDir = (name: string): string => fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), `tcm ${name} `)))

used by