(files: Record<string, string>)
| 26 | }); |
| 27 | |
| 28 | const project = (files: Record<string, string>): string => { |
| 29 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-alias-overlap-')); |
| 30 | dirs.push(dir); |
| 31 | for (const [rel, content] of Object.entries(files)) { |
| 32 | fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true }); |
| 33 | fs.writeFileSync(path.join(dir, rel), content); |
| 34 | } |
| 35 | return dir; |
| 36 | }; |
| 37 | |
| 38 | const tsconfig = (paths: Record<string, string[]>): string => |
| 39 | JSON.stringify({ compilerOptions: { baseUrl: './src', paths } }); |
no test coverage detected