| 767 | |
| 768 | test('step attachments are referentially equal to result attachments', async ({ runInlineTest }) => { |
| 769 | class TestReporter implements Reporter { |
| 770 | onStepEnd(test: TestCase, result: TestResult, step: TestStep) { |
| 771 | console.log('%%%', JSON.stringify({ |
| 772 | title: step.title, |
| 773 | attachments: step.attachments.map(a => result.attachments.indexOf(a)), |
| 774 | })); |
| 775 | } |
| 776 | } |
| 777 | const result = await runInlineTest({ |
| 778 | 'reporter.ts': `module.exports = ${TestReporter.toString()}`, |
| 779 | 'playwright.config.ts': `module.exports = { reporter: './reporter' };`, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…