timkindberg / jest-when

Jest support for mock argument-matched return values.
MIT License
737 stars 39 forks source link

Add ability to match/assert on all the args at once #67

Closed timkindberg closed 3 years ago

timkindberg commented 3 years ago

Closes #66

@mcous Can you please review and see if this might meet your needs? I have one test in particular that address your specific use case.

Still needs:

codecov-commenter commented 3 years ago

Codecov Report

Merging #67 (3e7805b) into master (ea49d39) will not change coverage. The diff coverage is 100.00%.

:exclamation: Current head 3e7805b differs from pull request most recent head 7163307. Consider uploading reports for the commit 7163307 to get more accurate results Impacted file tree graph

@@            Coverage Diff            @@
##            master       #67   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          108       116    +8     
=========================================
+ Hits           108       116    +8     
Impacted Files Coverage Δ
src/when.js 100.00% <100.00%> (ø)

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 ea49d39...7163307. Read the comment docs.

timkindberg commented 3 years ago

@mcous I'm really liking this feature! Check out the documentation changes I made.