MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / makeTmpDir

Function makeTmpDir

test/unit/utils/trace_test.js:19–22  ·  view source on GitHub ↗
(prefix = 'trace-test')

Source from the content-addressed store, hash-verified

17} from '../../../lib/utils/trace.js'
18
19function makeTmpDir(prefix = 'trace-test') {
20 const dir = fs.mkdtempSync(path.join(os.tmpdir(), `${prefix}-`))
21 return dir
22}
23
24function rmDir(dir) {
25 try { fs.rmSync(dir, { recursive: true, force: true }) } catch {}

Callers 1

trace_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected