| 2 | import { normalizeSnapshotOutput } from '../normalize.ts'; |
| 3 | |
| 4 | function progressBlock(total: number, failed: number): string { |
| 5 | return Array.from({ length: total + 1 }, (_, completed) => { |
| 6 | const failures = completed === total ? failed : 0; |
| 7 | const label = failures === 1 ? 'failure' : 'failures'; |
| 8 | return `Running tests (${completed} completed, ${failures} ${label}, 0 skipped)`; |
| 9 | }).join('\n'); |
| 10 | } |
| 11 | |
| 12 | describe('normalizeSnapshotOutput', () => { |
| 13 | it('normalizes volatile device and build-settings values', () => { |