From 3d4b84c7c4bb439dda0569e0d25e55e13d533fe8 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 11 Jan 2026 11:49:49 +0200 Subject: [PATCH] e2e(server): format file --- apps/server-e2e/playwright.config.ts | 58 ++++++++++++++-------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/apps/server-e2e/playwright.config.ts b/apps/server-e2e/playwright.config.ts index 3d7da5782..d4fe1ecd5 100644 --- a/apps/server-e2e/playwright.config.ts +++ b/apps/server-e2e/playwright.config.ts @@ -9,36 +9,36 @@ const baseURL = process.env['BASE_URL'] || `http://127.0.0.1:${port}`; * See https://playwright.dev/docs/test-configuration. */ export default defineConfig({ - testDir: "src", - reporter: [["list"], ["html", { outputFolder: "test-output" }]], - outputDir: "test-output", - retries: 3, + testDir: "src", + reporter: [["list"], ["html", { outputFolder: "test-output" }]], + outputDir: "test-output", + retries: 3, - /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ - use: { - baseURL, - /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ - trace: 'on-first-retry', - }, - - /* Run your local dev server before starting the tests */ - webServer: !process.env.TRILIUM_DOCKER ? { - command: 'pnpm start-prod-no-dir', - url: baseURL, - reuseExistingServer: !process.env.CI, - cwd: join(__dirname, "../server"), - env: { - TRILIUM_DATA_DIR: "spec/db", - TRILIUM_PORT: port, - TRILIUM_INTEGRATION_TEST: "memory" + /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ + use: { + baseURL, + /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ + trace: 'on-first-retry', }, - timeout: 5 * 60 * 1000 - } : undefined, - projects: [ - { - name: "chromium", - use: { ...devices["Desktop Chrome"] }, - } - ] + /* Run your local dev server before starting the tests */ + webServer: !process.env.TRILIUM_DOCKER ? { + command: 'pnpm start-prod-no-dir', + url: baseURL, + reuseExistingServer: !process.env.CI, + cwd: join(__dirname, "../server"), + env: { + TRILIUM_DATA_DIR: "spec/db", + TRILIUM_PORT: port, + TRILIUM_INTEGRATION_TEST: "memory" + }, + timeout: 5 * 60 * 1000 + } : undefined, + + projects: [ + { + name: "chromium", + use: { ...devices["Desktop Chrome"] }, + } + ] });