UNPKG

loqatevars

Version:

Locate JavaScript files with 'const' or 'process.env' usage in LLM-generated codebases

10 lines (8 loc) 346 B
// Mock globby to avoid ESM loading issues jest.mock('globby'); const { validateDirectory } = require('../lib/utils'); describe('validateDirectory invalid parameter', () => { test('rejects for non-string directory argument', async () => { await expect(validateDirectory(123)).rejects.toHaveProperty('code', 'INVALID_DIRECTORY'); }); });