MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / caseInsensitiveTmp

Function caseInsensitiveTmp

__tests__/daemon-rendezvous-case.test.ts:95–102  ·  view source on GitHub ↗

True when the temp filesystem ignores case (default macOS APFS, NTFS).

()

Source from the content-addressed store, hash-verified

93
94/** True when the temp filesystem ignores case (default macOS APFS, NTFS). */
95function caseInsensitiveTmp(): boolean {
96 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-CaseProbe-'));
97 try {
98 return fs.existsSync(dir.replace('cg-CaseProbe-', 'cg-caseprobe-'));
99 } finally {
100 fs.rmSync(dir, { recursive: true, force: true });
101 }
102}
103
104describe('in-process project sharing (#2278)', () => {
105 it.runIf(caseInsensitiveTmp())('opens one graph for two casings of one root', async () => {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected