Skip to content

Commit

Permalink
Merge pull request #235 from jill64/dev
Browse files Browse the repository at this point in the history
chore: refactor test config
  • Loading branch information
wraith-ci[bot] committed Dec 7, 2023
2 parents acd69b2 + 9e624ea commit 745c333
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
21 changes: 2 additions & 19 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -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'))
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 745c333

Please sign in to comment.