From 7b45a999e6ca4d1d0844e73f16990aebd83d5631 Mon Sep 17 00:00:00 2001 From: timDeHof Date: Sun, 8 Oct 2023 13:03:10 -0400 Subject: [PATCH] chore: add eslint-disable to process.env.CI --- playwright.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playwright.config.js b/playwright.config.js index 9af0204..ce6933d 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -10,15 +10,19 @@ import "dotenv/config"; /** * @see https://playwright.dev/docs/test-configuration */ +// eslint-disable-next-line no-undef defineConfig({ testDir: "./tests", /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ + // eslint-disable-next-line no-undef forbidOnly: !!process.env.CI, /* Retry on CI only */ + // eslint-disable-next-line no-undef retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ + // eslint-disable-next-line no-undef workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: "html",