From 52d146111ad0e76389f54cbef6a79df3b232bc5b Mon Sep 17 00:00:00 2001 From: jill64 Date: Fri, 8 Dec 2023 01:43:57 +0900 Subject: [PATCH 1/2] Update playwright-config version to 1.2.0 --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e0ceaca..693ba4b 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "devDependencies": { "@jill64/eslint-config-ts": "1.0.1", "@jill64/prettier-config": "1.0.0", - "@jill64/playwright-config": "1.0.0", + "@jill64/playwright-config": "1.2.0", "@playwright/test": "1.40.1", "@sentry/core": "7.85.0", "@sentry/utils": "7.85.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4f30c70..83c6e19 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,8 +19,8 @@ importers: specifier: 1.0.1 version: 1.0.1(typescript@5.3.3) '@jill64/playwright-config': - specifier: 1.0.0 - version: 1.0.0(@playwright/test@1.40.1) + specifier: 1.2.0 + version: 1.2.0(@playwright/test@1.40.1) '@jill64/prettier-config': specifier: 1.0.0 version: 1.0.0 @@ -584,8 +584,8 @@ packages: - typescript dev: true - /@jill64/playwright-config@1.0.0(@playwright/test@1.40.1): - resolution: {integrity: sha512-DBqK02RMIftabMAu12WZzz6vjrQlO++7+ZHuNgEvgiaEJ/VDhsQEWZm29RmuL6axUD1hAS/Bx9a/q361Roqodg==} + /@jill64/playwright-config@1.2.0(@playwright/test@1.40.1): + resolution: {integrity: sha512-HYtnuuOqj+Oo2QCWv7Aqbc/MN7c1vE5MB8917oTH98GTTU/AaL1nPPj2OZ8BRwmv23QO1D2o81LmP0k/6H4gTA==} peerDependencies: '@playwright/test': ^1.40.0 dependencies: From 9e624ea22c342d1ac6d374fc2b24694caccfd839 Mon Sep 17 00:00:00 2001 From: jill64 Date: Fri, 8 Dec 2023 01:44:06 +0900 Subject: [PATCH 2/2] Update playwright.config.ts to use branchPreview() function --- playwright.config.ts | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 5859da8..9953b4d 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,20 +1,3 @@ -import { extendsConfig } from '@jill64/playwright-config' +import { branchPreview, extendsConfig } from '@jill64/playwright-config' -const ref_name = process.env.GITHUB_REF_NAME?.replaceAll('/', '-') - .replace('.', '-') - .slice(0, 28) - -export default extendsConfig( - ref_name === 'main' - ? { - use: { - baseURL: 'https://sentry-sveltekit-cloudflare.pages.dev' - } - } - : { - webServer: { - command: 'npm run preview', - port: 4173 - } - } -) +export default extendsConfig(branchPreview('cloudflare'))