Skip to content

Conversation

hansal7014
Copy link
Contributor

What changes are being made? (feature/bug)

Adding 'toBeEmptyObject()' custom matcher.

Why are these changes necessary? Link any related issues

Closes #228 by adding a new matcher.

Housekeeping

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

@codecov
Copy link

codecov bot commented Oct 6, 2021

Codecov Report

Merging #255 (62dade1) into main (a92353f) will increase coverage by 100.00%.
The diff coverage is 100.00%.

❗ Current head 62dade1 differs from pull request most recent head 2a3d3e6. Consider uploading reports for the commit 2a3d3e6 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           main      #255        +/-   ##
===========================================
+ Coverage      0   100.00%   +100.00%     
===========================================
  Files         0       111       +111     
  Lines         0       563       +563     
  Branches      0        99        +99     
===========================================
+ Hits          0       563       +563     
Impacted Files Coverage Δ
src/matchers/toBeEmptyObject/index.js 100.00% <100.00%> (ø)
src/matchers/toBeEmptyObject/predicate.js 100.00% <100.00%> (ø)
src/matchers/toBeArrayOfSize/index.js 100.00% <0.00%> (ø)
src/matchers/toThrowWithMessage/predicate.js 100.00% <0.00%> (ø)
src/matchers/toIncludeAllMembers/predicate.js 100.00% <0.00%> (ø)
src/matchers/toBeTrue/index.js 100.00% <0.00%> (ø)
src/matchers/toIncludeAllMembers/index.js 100.00% <0.00%> (ø)
src/matchers/toBeOneOf/predicate.js 100.00% <0.00%> (ø)
src/matchers/toBeTrue/predicate.js 100.00% <0.00%> (ø)
src/matchers/toIncludeSameMembers/predicate.js 100.00% <0.00%> (ø)
... and 101 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a92353f...2a3d3e6. Read the comment docs.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

thanks!

@SimenB SimenB changed the title Fixes #228 - Add a '.toBeEmptyObject()' custom matcher. feat: add a '.toBeEmptyObject()' custom matcher. Oct 6, 2021
@SimenB SimenB merged commit 35812e3 into jest-community:main Oct 6, 2021
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.

Feature request: New Matcher - Object.toBeEmptyObject

2 participants