(filePath: string, contents: string)
| 1488 | } |
| 1489 | |
| 1490 | async function writeFileIfDifferent(filePath: string, contents: string) { |
| 1491 | if (existsSync(filePath)) { |
| 1492 | const existingContents = await readFile(filePath, "utf-8"); |
| 1493 | if (existingContents === contents) { |
| 1494 | return; |
| 1495 | } |
| 1496 | } |
| 1497 | |
| 1498 | await writeFile(filePath, contents, "utf-8"); |
| 1499 | } |
| 1500 | |
| 1501 | function excludeFailedResponses(exchange: CapturedExchange): boolean { |
| 1502 | const status = exchange.response?.statusCode; |
no test coverage detected
searching dependent graphs…