Skip to content

Commit 0c22b6a

Browse files
committed
Update deps
1 parent 3911779 commit 0c22b6a

5 files changed

Lines changed: 44 additions & 55 deletions

File tree

‎global-setup.ts‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
import type { FullConfig } from "@playwright/test";
1+
import { baseURL } from "./playwright.config";
22
import { createUserInFile } from "./setup-utils";
33

4-
export default async function globalSetup(config: FullConfig) {
5-
const { baseURL } = config.projects[0]?.use || {};
6-
7-
if (!baseURL) {
8-
throw new Error("baseURL is required");
9-
}
10-
4+
export default async function globalSetup() {
115
await createUserInFile(baseURL, "api");
126
}

‎global-teardown.ts‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import type { FullConfig } from "@playwright/test";
1+
import { baseURL } from "./playwright.config";
22
import { deleteUserFromFile } from "./setup-utils";
33

4-
export default async function globalTeardown(config: FullConfig) {
5-
const { baseURL } = config.projects[0]?.use || {};
6-
if (!baseURL) {
7-
throw new Error("baseURL is required");
8-
}
9-
4+
export default async function globalTeardown() {
105
await deleteUserFromFile(baseURL, "api");
116
}

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
},
4444
"devDependencies": {
4545
"@biomejs/biome": "^2.3.9",
46-
"@playwright/test": "1.59.1",
46+
"@playwright/test": "1.60.0",
4747
"@types/bun": "^1.3.4",
48-
"endform": "^0.60.1",
48+
"endform": "^0.64.1",
4949
"tsx": "^4.21.0"
5050
}
5151
}

‎playwright.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { defineConfig, devices } from "@playwright/test";
88
// import path from 'path';
99
// dotenv.config({ path: path.resolve(__dirname, '.env') });
1010

11-
const baseURL = process.env.BASE_URL || "https://endform-playwright-tutorial.vercel.app"
11+
export const baseURL = process.env.BASE_URL || "https://endform-playwright-tutorial.vercel.app"
1212

1313
/**
1414
* See https://playwright.dev/docs/test-configuration.

‎pnpm-lock.yaml‎

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)