sinProject-Inc/sinpro-dev

View on GitHub
playwright.config.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { PlaywrightTestConfig } from '@playwright/test'

const config: PlaywrightTestConfig = {
    webServer: {
        command: 'npm run dev',
        port: 5173,
        reuseExistingServer: !process.env.CI,
    },
    // webServer: {
    //     command: 'npm run build && npm run preview',
    //     port: 4173,
    // },
    testDir: 'tests',
    testMatch: /(.+\.)?(test|spec)\.[jt]s/,

    reporter: 'html',
    use: {
        video: 'retain-on-failure',
        contextOptions: {
            permissions: ['clipboard-read', 'clipboard-write'],
        },
    },
}

export default config