True when the temp filesystem ignores case (default macOS APFS, NTFS).
()
| 93 | |
| 94 | /** True when the temp filesystem ignores case (default macOS APFS, NTFS). */ |
| 95 | function 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 | |
| 104 | describe('in-process project sharing (#2278)', () => { |
| 105 | it.runIf(caseInsensitiveTmp())('opens one graph for two casings of one root', async () => { |
no test coverage detected