Skip to content

Conversation

@SbsCruz
Copy link

@SbsCruz SbsCruz commented Oct 6, 2025

Added the toHaveSomeStyle matcher.

@SbsCruz SbsCruz requested a review from suany0805 October 6, 2025 21:05
@SbsCruz SbsCruz self-assigned this Oct 6, 2025
@SbsCruz SbsCruz marked this pull request as ready for review October 7, 2025 16:34
@SbsCruz SbsCruz requested a review from JoseLion as a code owner October 7, 2025 16:34

const receivedStyle = getReceivedStyle(props, received);
if (!expectedStyle || !receivedStyle) {
throw new Error("No available styles.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can improve the messaging in here:

Suggested change
throw new Error("No available styles.");
throw new Error("Currently there are no available styles.");

* ```
* expect(component).toHaveSomeStyle({ color: 'green', display: 'block' });
* ```
*
Copy link
Contributor

@suany0805 suany0805 Oct 24, 2025

Choose a reason for hiding this comment

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

remove extra line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants