🧪 Testing: Add unit test for accepted issue with label object #207
Labels
area: testing
Improving how the repository's tests are run and/or code is tested
area: tooling
Managing the repository's maintenance
good first issue
Good for newcomers, please hop on!
status: accepting prs
Please, send a pull request to resolve this!
type: cleanup
Tech debt or other code/repository cleanups
Bug Report Checklist
main
branch of the repository.Overview
Codecov reports that there's a single logical branch that doesn't have test coverage (https://app.codecov.io/gh/JoshuaKGoldberg/all-contributors-for-repository/blob/6d731eefd01cbd3e54fd35c1ccb676e15634da49/src%2Fcollect%2Fadding%2FaddAcceptedIssues.ts):
That
typeof label === "string" ? label : label.name
condition is run by the unit test inaddAcceptedIssues.test.ts
... but only the case of the label being a string is covered. No unit test runs the case of a label that's an object with aname
property.Accepting PRs to add a new unit test to
addAcceptedIssues.test.ts
for alabel
that's type{ name: string }
instead ofstring
.Additional Info
No response
The text was updated successfully, but these errors were encountered: