(root: string, files: Record<string, string>)
| 90 | 'export abstract class OrganizationService {\n abstract organizations$(userId: string): string[];\n}\n', |
| 91 | }; |
| 92 | const write = (root: string, files: Record<string, string>) => { |
| 93 | for (const [file, text] of Object.entries(files)) { |
| 94 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 95 | fs.writeFileSync(path.join(root, file), text); |
| 96 | } |
| 97 | }; |
| 98 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-ts-dollar-sync-')); |
| 99 | roots.push(root); |
| 100 | write(root, caller); |
no test coverage detected