Add testing frameworks
This commit is contained in:
23
playwright.config.ts
Normal file
23
playwright.config.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import { defineConfig, devices } from "@playwright/test";
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "tests/e2e",
|
||||
timeout: 60_000,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
reporter: [["list"], ["html", { outputFolder: "playwright-report" }]],
|
||||
use: {
|
||||
baseURL: process.env.PLAYWRIGHT_BASE_URL || "http://localhost:3000",
|
||||
trace: "on-first-retry",
|
||||
screenshot: "only-on-failure",
|
||||
video: "retain-on-failure"
|
||||
},
|
||||
projects: [
|
||||
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
|
||||
{ name: "webkit", use: { ...devices["Desktop Safari"] } }
|
||||
],
|
||||
webServer: {
|
||||
command: "bun run start",
|
||||
url: "http://localhost:3000",
|
||||
reuseExistingServer: !process.env.CI
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user