( structure: TestFsStructure, )
| 6 | const testFilename = 'basic.test.ts' |
| 7 | |
| 8 | async function runBrowserTests( |
| 9 | structure: TestFsStructure, |
| 10 | ) { |
| 11 | return runInlineTests({ |
| 12 | ...structure, |
| 13 | 'vitest.config.js': ` |
| 14 | import { instances, provider } from '../settings.ts' |
| 15 | |
| 16 | export default { |
| 17 | test: { |
| 18 | browser: { |
| 19 | enabled: true, |
| 20 | screenshotFailures: true, |
| 21 | provider, |
| 22 | ui: false, |
| 23 | headless: true, |
| 24 | instances: instances.slice(0, 1), // logic not bound to browser instance |
| 25 | }, |
| 26 | reporters: ['verbose'], |
| 27 | update: 'new', |
| 28 | }, |
| 29 | }`, |
| 30 | }) |
| 31 | } |
| 32 | |
| 33 | describe('failure screenshots', () => { |
| 34 | describe('`toMatchScreenshot`', () => { |
no test coverage detected