MCPcopy
hub / github.com/claude-code-best/claude-code / shortTestDir

Function shortTestDir

src/utils/__tests__/udsMessaging.test.ts:50–56  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

48}
49
50function shortTestDir(prefix: string): string {
51 const id = `${process.pid}-${Math.random().toString(16).slice(2)}`
52 if (process.platform === 'darwin') {
53 return join('/tmp', `${prefix}-${id}`)
54 }
55 return join(tmpdir(), `${prefix}-${id}`)
56}
57
58function sleep(ms: number): Promise<void> {
59 return new Promise(resolve => setTimeout(resolve, ms))

Callers 1

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected