mirror your GitHub repos to tangled.org automatically
1import { fileURLToPath } from 'node:url'
2import { defineConfig, devices } from '@playwright/test'
3import type { ConfigOptions } from '@nuxt/test-utils/playwright'
4
5export default defineConfig<ConfigOptions>({
6 testDir: './tests',
7 fullyParallel: true,
8 forbidOnly: !!process.env.CI,
9 retries: process.env.CI ? 2 : 0,
10 workers: process.env.CI ? 1 : undefined,
11 reporter: 'html',
12 use: {
13 trace: 'on-first-retry',
14 nuxt: {
15 rootDir: fileURLToPath(new URL('.', import.meta.url)),
16 },
17 },
18 projects: [
19 {
20 name: 'chromium',
21 use: { ...devices['Desktop Chrome'] },
22 },
23 ],
24})