MCPcopy
hub / github.com/openai/codex-plugin-cc / makeTempDir

Function makeTempDir

tests/helpers.mjs:7–9  ·  view source on GitHub ↗
(prefix = "codex-plugin-test-")

Source from the content-addressed store, hash-verified

5import { spawnSync } from "node:child_process";
6
7export function makeTempDir(prefix = "codex-plugin-test-") {
8 return fs.mkdtempSync(path.join(os.tmpdir(), prefix));
9}
10
11export function writeExecutable(filePath, source) {
12 fs.writeFileSync(filePath, source, { encoding: "utf8", mode: 0o755 });

Callers 4

makeVersionFixtureFunction · 0.90
git.test.mjsFile · 0.90
runtime.test.mjsFile · 0.90
state.test.mjsFile · 0.90

Calls

no outgoing calls

Tested by 1

makeVersionFixtureFunction · 0.72