Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(expect): add the .toBeCallableWith() matcher #52

Draft
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

mrazauskas
Copy link
Member

@mrazauskas mrazauskas commented Dec 21, 2023

Adding the .toBeCallableWith() matcher.

It must take into account the following:

  • basic arity check,
  • optional parameters,
  • default parameters,
  • rest parameters,
  • assignability of argument types to corresponding parameter types,
  • function overloads,
  • generic functions.

@tstyche tstyche deleted a comment from codecov bot Mar 9, 2024
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.04% (target: -1.00%) 96.05% (target: 95.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (c61b6ff) 5327 5178 97.20%
Head commit (3c39388) 5504 (+177) 5348 (+170) 97.17% (-0.04%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#52) 177 170 96.05%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

You may notice some variations in coverage metrics with the latest Coverage engine update. For more details, visit the documentation

@mrazauskas mrazauskas force-pushed the main branch 3 times, most recently from 15db341 to 82650dc Compare May 25, 2024 19:14
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.

None yet

1 participant