Skip to content

Commit 3fce074

Browse files
update process declaration in playwright configs
1 parent 2aedee9 commit 3fce074

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

examples/api/e2e/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig, devices } from "@playwright/test";
2+
import nodeProcess from "node:process";
23

3-
declare var process: { env: Record<string, string> };
4+
declare const process: typeof nodeProcess;
45

56
/**
67
* See https://playwright.dev/docs/test-configuration.

examples/api/e2e/playwright.dev.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig, devices } from "@playwright/test";
2+
import nodeProcess from "node:process";
23

3-
declare var process: { env: Record<string, string> };
4+
declare const process: typeof nodeProcess;
45

56
/**
67
* See https://playwright.dev/docs/test-configuration.

examples/create-next-app/e2e/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig, devices } from "@playwright/test";
2+
import nodeProcess from "node:process";
23

3-
declare const process: { env: Record<string, string> };
4+
declare const process: typeof nodeProcess;
45

56
/**
67
* See https://playwright.dev/docs/test-configuration.

examples/middleware/e2e/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig, devices } from "@playwright/test";
2+
import nodeProcess from "node:process";
23

3-
declare const process: { env: Record<string, string> };
4+
declare const process: typeof nodeProcess;
45

56
/**
67
* See https://playwright.dev/docs/test-configuration.

examples/middleware/e2e/playwright.dev.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig, devices } from "@playwright/test";
2+
import nodeProcess from "node:process";
23

3-
declare var process: { env: Record<string, string> };
4+
declare const process: typeof nodeProcess;
45

56
/**
67
* See https://playwright.dev/docs/test-configuration.

0 commit comments

Comments
 (0)