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

Function missingDrive

__tests__/compile-cache-missing-drive.test.ts:13–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
12
13function missingDrive(): string {
14 for (const letter of 'ZYXWVUTSRQPONMLKJIHGFED') if (!fs.existsSync(`${letter}:\\`)) return letter;
15 throw new Error('every drive letter is taken');
16}
17
18describe('a temp folder on a missing drive', () => {
19 it.runIf(process.platform === 'win32')('leaves the CLI working', () => {

Calls

no outgoing calls

Tested by

no test coverage detected