Skip to content

Conversation

@SbsCruz
Copy link
Contributor

@SbsCruz SbsCruz commented Jan 16, 2026

Added the toBeEmpty matcher.

@SbsCruz SbsCruz requested a review from suany0805 January 16, 2026 19:20
};
}

export function isElementEmpty (element: Element): boolean {
Copy link
Contributor Author

@SbsCruz SbsCruz Jan 16, 2026

Choose a reason for hiding this comment

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

Just a little comment about this function team, this is a helper indeed, but since we have a lot of helpers for the styles matchers in this file, should we rename it to something like helpers/style.ts? causing the isElementEmpty function to be moved to another file? or are we ok with what we have now, thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that is a good approach to take into account! As helpers.ts is becoming a bit of a mixed bag. So we can have this file renamed to style-helpers.ts to keep the CSS logic isolated, and the isElementEmpty to a new dom-helpers.ts file. That should keep the separation of concerns clear.

@SbsCruz SbsCruz requested a review from JDOM10 January 22, 2026 20:07
Copy link
Collaborator

@JDOM10 JDOM10 left a comment

Choose a reason for hiding this comment

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

Awesome work @SbsCruz! The only thing to review is the comment above with the rest of the team. Other than that, it looks great to me! 👍

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.

3 participants