mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-15 08:31:56 +00:00
fd53a8c9d0
Co-authored-by: Pablo Lara <larabjj@gmail.com> Co-authored-by: César Arroba <19954079+cesararroba@users.noreply.github.com>
35 lines
749 B
TypeScript
35 lines
749 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./tests",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: [["list"]],
|
|
outputDir: "/tmp/playwright-tests",
|
|
|
|
use: {
|
|
baseURL: "http://localhost:3000",
|
|
trace: "off",
|
|
screenshot: "off",
|
|
video: "off",
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
|
|
webServer: {
|
|
command: process.env.CI
|
|
? "npm run build && npm run start:standalone"
|
|
: "npm run dev",
|
|
url: "http://localhost:3000",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120 * 1000,
|
|
},
|
|
});
|