playwright.config.ts (20 lines of code) (raw):
import type { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
testMatch: 'playwright/**/*.test.ts',
projects: [
{
name: 'Chrome Stable',
use: {
browserName: 'chromium',
channel: 'chrome',
},
},
],
testDir: './playwright',
snapshotPathTemplate: '{testDir}/reference-images/{arg}{ext}',
reporter: [
['line'],
['json', { outputFile: 'test-results/visual-regression-results.json' }],
],
};
export default config;