(files: Record<string, string>)
| 18 | }); |
| 19 | |
| 20 | async function project(files: Record<string, string>): Promise<CodeGraph> { |
| 21 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-fuzzy-case-')); |
| 22 | roots.push(root); |
| 23 | for (const [rel, content] of Object.entries(files)) { |
| 24 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 25 | fs.writeFileSync(path.join(root, rel), content); |
| 26 | } |
| 27 | return CodeGraph.init(root, { index: true }); |
| 28 | } |
| 29 | |
| 30 | const targetsFrom = (cg: CodeGraph, file: string): string[] => |
| 31 | cg |
no test coverage detected