-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Mark toHaveBeenCalledBefore and After's second parameter as optional #650
Conversation
`toHaveBeenCalledBefore`'s first parameter should be optional because it has a default value.
|
I think you forgot to mark the second argument of toHaveBeenCalledAfter function as an optional |
@chornos13 I didn't personally need |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #650 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 73 73
Lines 674 674
Branches 290 290
=========================================
Hits 674 674 ☔ View full report in Codecov by Sentry. |
Thanks for the PR! |
Should we add an action that checks if either there's an added changeset or we add a label? Seems the message from the bots is overlooked by contributors most of the time 😅 |
I'm not too picky about how we do it. I'm fine with that approach. I know some projects force a changeset for every PR. On the one hand, seems like maybe overkill, but on the other hand, I haven't seen a PR that would be awkward to have this rule. |
Not all PRs need a changeset - e.g. docs only. But seeing as the comment is ignored, we might need something that yells louder before merging |
Oh, I thought docs used the changeset for publishing the updated docs to the website. |
Nah, changesets is solely for publishing to npm. Website changes are apparently a manual step (#648 (comment)) - ideally that would just be autopublished on pushes to |
What
Marks
toHaveBeenCalledBefore
andtoHaveBeenCalledAfter
's second parameter as optional in the type declarations.Why
Current type declarations generate an error if the parameter isn't passed. This is inaccurate, as the default value will be used in this case.
Notes
Fixes #651
Housekeeping