mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
27 lines
677 B
TypeScript
27 lines
677 B
TypeScript
|
|
import * as path from 'path'
|
||
|
|
|
||
|
|
import { defineConfig } from '@playwright/test'
|
||
|
|
|
||
|
|
const __dirname = import.meta.dirname
|
||
|
|
|
||
|
|
const tuonoDir = path.join(__dirname, '../../../', 'target', 'debug', 'tuono')
|
||
|
|
const setupScript = path.join(__dirname, '../..', 'e2e-test-setup.js')
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: './tests',
|
||
|
|
fullyParallel: true,
|
||
|
|
forbidOnly: !!process.env.CI,
|
||
|
|
retries: process.env.CI ? 2 : 0,
|
||
|
|
workers: process.env.CI ? 1 : undefined,
|
||
|
|
webServer: {
|
||
|
|
command: `node ${setupScript} && ${tuonoDir} dev`,
|
||
|
|
port: 3000,
|
||
|
|
timeout: 420 * 1000,
|
||
|
|
stdout: 'pipe',
|
||
|
|
reuseExistingServer: false,
|
||
|
|
},
|
||
|
|
use: {
|
||
|
|
baseURL: 'http://localhost:3000',
|
||
|
|
},
|
||
|
|
})
|