Skip to content

Commit 3a51a28

Browse files
authored
refactor: CI detection for Playwright (#588)
1 parent 234c4fb commit 3a51a28

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

3-
export default configurePlaywright("gh-119", { isCI: !!process.env.CI });
3+
export default configurePlaywright("gh-119");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

3-
export default configurePlaywright("gh-219", { isCI: !!process.env.CI });
3+
export default configurePlaywright("gh-219");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

3-
export default configurePlaywright("gh-223", { isCI: !!process.env.CI });
3+
export default configurePlaywright("gh-223");

examples/common/config-e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function configurePlaywright(
88
app: AppName,
99
{
1010
// Do we run on CI?
11-
isCI = false,
11+
isCI = Boolean(process.env.CI),
1212
// Do we run on workers (`wrangler dev`) or on Node (`next dev`)
1313
isWorker = true,
1414
// Tests with multiple browsers
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../common/config-e2e";
22

3-
export default configurePlaywright("create-next-app", { isCI: !!process.env.CI, multipleBrowsers: true });
3+
export default configurePlaywright("create-next-app", { multipleBrowsers: true });
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

3-
export default configurePlaywright("app-pages-router", { isCI: !!process.env.CI });
3+
export default configurePlaywright("app-pages-router");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

3-
export default configurePlaywright("app-router", { isCI: !!process.env.CI });
3+
export default configurePlaywright("app-router");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

3-
export default configurePlaywright("pages-router", { isCI: !!process.env.CI });
3+
export default configurePlaywright("pages-router");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { configurePlaywright } from "../../common/config-e2e";
22

3-
export default configurePlaywright("middleware", { isCI: !!process.env.CI, multipleBrowsers: true });
3+
export default configurePlaywright("middleware", { multipleBrowsers: true });
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { configurePlaywright } from "../../../common/config-e2e";
22

33
// Here we don't want to run the tests in parallel
4-
export default configurePlaywright("d1-tag-next", { isCI: !!process.env.CI, parallel: false });
4+
export default configurePlaywright("d1-tag-next", { parallel: false });

0 commit comments

Comments
 (0)