(filePath: string, content = '')
| 16 | let projectRoot: string; |
| 17 | |
| 18 | async function createTestFile(filePath: string, content = '') { |
| 19 | const fullPath = path.join(projectRoot, filePath); |
| 20 | await fs.mkdir(path.dirname(fullPath), { recursive: true }); |
| 21 | await fs.writeFile(fullPath, content); |
| 22 | return fullPath; |
| 23 | } |
| 24 | |
| 25 | beforeEach(async () => { |
| 26 | testRootDir = await fs.mkdtemp( |
no test coverage detected