Skip to content

Commit

Permalink
chore: add eslint-disable to process.env.CI
Browse files Browse the repository at this point in the history
  • Loading branch information
timDeHof committed Oct 8, 2023
1 parent 6bdeaa7 commit 7b45a99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7b45a99

Please sign in to comment.