(filePath: string, content: string)
| 51 | }; |
| 52 | |
| 53 | function writeFile(filePath: string, content: string) { |
| 54 | // Update the temp file system host to reflect the changes in the real file system. |
| 55 | // This is still necessary since we depend on the real file system for parsing the |
| 56 | // TypeScript project. |
| 57 | if (hostTree.exists(filePath)) { |
| 58 | hostTree.overwrite(filePath, content); |
| 59 | } else { |
| 60 | hostTree.create(filePath, content); |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | export async function createTestCaseSetup( |
no test coverage detected