(rel: string, content = 'export const x = 1;\n')
| 105 | describe('include behavior — scanDirectory force-indexes gitignored source', () => { |
| 106 | let dir: string; |
| 107 | const mk = (rel: string, content = 'export const x = 1;\n') => { |
| 108 | const p = path.join(dir, rel); |
| 109 | fs.mkdirSync(path.dirname(p), { recursive: true }); |
| 110 | fs.writeFileSync(p, content); |
| 111 | }; |
| 112 | const writeConfig = (obj: unknown) => |
| 113 | fs.writeFileSync(path.join(dir, 'codegraph.json'), JSON.stringify(obj)); |
| 114 | const scan = () => scanDirectory(dir).map((f) => f.replace(/\\/g, '/')); |
no test coverage detected