()
| 79 | } |
| 80 | |
| 81 | async finishTestCase(): Promise<void> { |
| 82 | const outPath = this.calculateFilePath(this.testCase!); |
| 83 | const fixture = this.testCase!.toYaml(); |
| 84 | await this.writeToFile(outPath, fixture); |
| 85 | this.testCase = null; |
| 86 | } |
| 87 | |
| 88 | private async writeToFile(outPath: string, fixture: string) { |
| 89 | fs.writeFileSync(outPath, fixture); |
no test coverage detected