Skip to content

Commit 3a9d14b

Browse files
committed
chore: add isCI to the config
1 parent 6fa543c commit 3a9d14b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

playwright.config.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
"use strict";
22

3+
const isCI = process.env.CI === "true";
4+
35
/** @type { import('@playwright/test').PlaywrightTestConfig} */
46
module.exports = {
57
globalSetup: require.resolve("./scripts/setupPlaywright.js"),
68
testIgnore: "**/*.ignore.*",
79
testDir: "./test/e2e",
810
fullyParallel: false,
9-
forbidOnly: !!process.env.CI,
11+
forbidOnly: !isCI,
1012
// TODO: can help with flakiness, make sure it works on CI
11-
retries: process.env.CI ? 2 : 0,
13+
retries: isCI ? 2 : 0,
1214
workers: 1,
13-
reporter: process.env.CI ? "github" : "list",
15+
reporter: isCI ? "github" : "list",
1416
use: {
1517
trace: "on-first-retry",
1618
},

0 commit comments

Comments
 (0)