mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
Co-authored-by: hi-ogawa <[email protected]> Co-authored-by: Hiroshi Ogawa <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
18 lines
473 B
TypeScript
18 lines
473 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
export default defineConfig({
|
|
testDir: './test',
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
// increase viewport height so virtual scroller renders all explorer items
|
|
use: { ...devices['Desktop Chrome'], viewport: { width: 800, height: 1300 } },
|
|
},
|
|
],
|
|
use: {
|
|
trace: process.env.CI ? 'on-first-retry' : undefined,
|
|
},
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
})
|