Skip to content

Conversation

maartentibau
Copy link

What

Added a new matcher that is inspired on the isEmptyObject matcher.

Why

Personally I think using the arrayOfSize(0) matcher is less straight forward then toBeEmptyArray(). Secondly since the matcher toBeEmptyObject already existed, I thought it was a good idea to also add this one for convenience

Notes

Housekeeping

  • Unit tests
  • Documentation is up to date
  • No additional lint warnings
  • Typescript definitions are added/updated where relevant

Copy link

changeset-bot bot commented Jul 22, 2025

🦋 Changeset detected

Latest commit: 73fdac5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
jest-extended Minor

Not sure what this means? Click here to learn what changesets are.

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

@maartentibau maartentibau force-pushed the feat/add-matcher-to-be-empty-array branch from a221bc0 to 9d42dea Compare July 22, 2025 05:23
@maartentibau maartentibau force-pushed the feat/add-matcher-to-be-empty-array branch from 9d42dea to 73fdac5 Compare August 26, 2025 13:07
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.

1 participant