Skip to content

Conversation

siddharthkp
Copy link
Member

@siddharthkp siddharthkp commented Sep 10, 2025

Realised the browser tests weren't running 😅

Found a broken test because Select has not supported sx since May, there are no instances of it in github-ui, but there are a few in other apps

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@siddharthkp siddharthkp self-assigned this Sep 10, 2025
Copy link

changeset-bot bot commented Sep 10, 2025

⚠️ No Changeset found

Latest commit: 2a6b17f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the staff Author is a staff member label Sep 10, 2025
Copy link
Contributor

github-actions bot commented Sep 10, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 88.64 KB (0%)
packages/react/dist/browser.umd.js 88.73 KB (0%)

@siddharthkp siddharthkp marked this pull request as ready for review September 10, 2025 11:05
@Copilot Copilot AI review requested due to automatic review settings September 10, 2025 11:05
@siddharthkp siddharthkp requested a review from a team as a code owner September 10, 2025 11:05
Copy link
Contributor

@Copilot 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 fixes a configuration issue where browser tests for the styled-react package weren't running due to incorrect file pattern matching in the Vitest configuration. The fix ensures both .ts and .mts browser test configuration files are properly detected and executed.

  • Updated the root Vitest config to include both .ts and .mts browser configuration files
  • Added test names to distinguish between node and browser test environments
  • Skipped a failing Select component test that was testing for an sx prop that was removed in May

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vitest.config.mts Added missing pattern for vitest.config.browser.ts files to ensure browser tests run
packages/styled-react/vitest.config.ts Added descriptive test name for node environment tests
packages/styled-react/vitest.config.browser.ts Added descriptive test name for browser environment tests
packages/styled-react/tsconfig.json Removed trailing empty line for formatting consistency
packages/styled-react/src/tests/primer-react.browser.test.tsx Skipped failing Select sx prop test since the feature was removed

})

test('Select supports `sx` prop', () => {
test.skip('Select supports `sx` prop', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

skipping until we decide what to do with this, do we accept that sx should not be supported (not supported in this component since May) or do we bring it back?

@siddharthkp siddharthkp removed the request for review from hectahertz September 10, 2025 11:53
@siddharthkp siddharthkp added this pull request to the merge queue Sep 15, 2025
Merged via the queue into main with commit 5f5fe57 Sep 15, 2025
44 checks passed
@siddharthkp siddharthkp deleted the styled-react/fix-browser-tests branch September 15, 2025 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset This change does not need a changelog staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants