Skip to content

fix(browser): make provider field required#886

Merged
fi3ework merged 1 commit intomainfrom
require-provider
Jan 20, 2026
Merged

fix(browser): make provider field required#886
fi3ework merged 1 commit intomainfrom
require-provider

Conversation

@fi3ework
Copy link
Copy Markdown
Member

Summary

make provider field required.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 20, 2026 12:02
@fi3ework fi3ework enabled auto-merge (squash) January 20, 2026 12:02
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 20, 2026

Deploying rstest with  Cloudflare Pages  Cloudflare Pages

Latest commit: bed6f03
Status: ✅  Deploy successful!
Preview URL: https://79161aa1.rstest.pages.dev
Branch Preview URL: https://require-provider.rstest.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the provider field required in the browser configuration by removing its optional marker and adding runtime validation to ensure it's provided when browser mode is enabled.

Changes:

  • Changed provider field from optional to required in BrowserModeConfig type definition
  • Added runtime validation to throw an error when browser.enabled is true but provider is missing
  • Updated all configuration files (examples, e2e fixtures, templates) to explicitly include provider: 'playwright'

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/core/src/types/config.ts Removed optional marker from provider field and deleted default value comment
packages/core/src/config.ts Added validation logic to enforce provider requirement when browser mode is enabled
packages/core/tests/config.test.ts Added comprehensive test suite for browser provider validation
packages/core/tests/cli/init.test.ts Updated existing tests to include required provider field
packages/core/src/cli/init.ts Set default provider when browser options are provided via CLI
packages/core/src/cli/init/browser/templates.ts Updated config template to include provider field
examples/browser-react/rstest.config.ts Added explicit provider: 'playwright'
examples/browser-projects/projectA/rstest.config.ts Added explicit provider: 'playwright'
examples/browser-projects/projectB/rstest.config.ts Added explicit provider: 'playwright'
e2e/browser-mode/fixtures/*/rstest.config.ts Added explicit provider: 'playwright' to all browser mode fixtures

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fi3ework fi3ework disabled auto-merge January 20, 2026 13:09
@fi3ework fi3ework enabled auto-merge (squash) January 20, 2026 13:09
@fi3ework fi3ework merged commit 3da48b3 into main Jan 20, 2026
9 checks passed
@fi3ework fi3ework deleted the require-provider branch January 20, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants