MCPcopy
hub / github.com/desktop/desktop / createTempDirectory

Function createTempDirectory

app/test/helpers/temp.ts:19–23  ·  view source on GitHub ↗
(t: TestContext)

Source from the content-addressed store, hash-verified

17 )
18
19export const createTempDirectory = (t: TestContext) =>
20 mkdtemp(join(tmpdir(), 'desktop-test-')).then(path => {
21 t.after(() => clean(path))
22 return path
23 })

Callers 15

setupFixtureRepositoryFunction · 0.90
setupEmptyRepositoryFunction · 0.90
setupEmptyDirectoryFunction · 0.90
cloneRepositoryFunction · 0.90
cloneLocalRepositoryFunction · 0.90
git-info-test.tsFile · 0.90
createBareUpstreamFunction · 0.90
init-test.tsFile · 0.90

Calls 1

cleanFunction · 0.85

Tested by

no test coverage detected