Skip to content

Commit edec4ea

Browse files
committed
test(replay): document package-local scratch fixture
1 parent c36c940 commit edec4ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/replay-port/src/tmp-dir.fixtures.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import fs from 'node:fs';
22
import os from 'node:os';
33
import path from 'node:path';
44

5-
/** The unit suite redirects TMPDIR to a per-run directory and removes it after each worker. */
5+
/** The unit suite redirects TMPDIR to a per-run directory removed after all workers finish. */
6+
// fallow-ignore-next-line code-duplication
67
export function mkdtempForTestSync(prefix: string): string {
78
return fs.mkdtempSync(path.join(os.tmpdir(), prefix));
89
}

0 commit comments

Comments
 (0)