Rust library to generate static websites
1import { defineConfig, devices } from "@playwright/test";
2
3/**
4 * See https://playwright.dev/docs/test-configuration.
5 */
6export default defineConfig({
7 testDir: "./tests",
8 /* Run tests in files in parallel */
9 fullyParallel: true,
10 /* Fail the build on CI if you accidentally left test.only in the source code. */
11 forbidOnly: !!process.env.CI,
12 /* Retry on CI only */
13 retries: process.env.CI ? 2 : 0,
14 /* Opt out of parallel tests on CI. */
15 workers: process.env.CI ? 1 : undefined,
16 /* Reporter to use. See https://playwright.dev/docs/test-reporters */
17 reporter: "html",
18 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
19 use: {
20 /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
21 trace: "on-first-retry",
22 },
23
24 /* Configure projects for major browsers */
25 projects: [
26 {
27 name: "chromium",
28 use: { ...devices["Desktop Chrome"] },
29 },
30 ],
31});