mirror of
https://github.com/duhanbalci/dreport.git
synced 2026-07-02 02:49:16 +00:00
22 lines
445 B
TypeScript
22 lines
445 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/visual',
|
|
outputDir: './tests/visual/test-results',
|
|
use: {
|
|
baseURL: 'http://localhost:5173',
|
|
viewport: { width: 1400, height: 900 },
|
|
},
|
|
webServer: {
|
|
command: 'bun run dev',
|
|
port: 5173,
|
|
reuseExistingServer: true,
|
|
timeout: 30000,
|
|
},
|
|
expect: {
|
|
toHaveScreenshot: {
|
|
maxDiffPixelRatio: 0.01,
|
|
},
|
|
},
|
|
})
|