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

🚀 Feature: Blog post on resolving test code coverage gaps #323

Open
3 tasks done
JoshuaKGoldberg opened this issue Nov 25, 2024 · 1 comment · May be fixed by #324
Open
3 tasks done

🚀 Feature: Blog post on resolving test code coverage gaps #323

JoshuaKGoldberg opened this issue Nov 25, 2024 · 1 comment · May be fixed by #324
Assignees
Labels
status: blocked type: feature New enhancement or request

Comments

@JoshuaKGoldberg
Copy link
Owner

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

I end up leaving these comments a lot on PRs. For each gap in coverage, at least one of the following is probably true:

  • The code is reachable, so a unit test should exercise it
  • The code can be refactored to not include that case
  • This is a difficult-to-represent edge case in types and a type assertion is warranted

Additional Info

Oftentimes when I post these it's on a lint rule that needs more RuleTester testing. But I don't want the version on my blog to be specific to lint rules - that stuff is intimidating to many. I'll probably suggest an equivalent blog post on the typescript-eslint blog for specifically lint rules.

💖

@JoshuaKGoldberg JoshuaKGoldberg added type: feature New enhancement or request status: accepting prs Please, send a pull request to resolve this! labels Nov 25, 2024
@JoshuaKGoldberg JoshuaKGoldberg self-assigned this Nov 25, 2024
@JoshuaKGoldberg JoshuaKGoldberg linked a pull request Nov 25, 2024 that will close this issue
3 tasks
@JoshuaKGoldberg
Copy link
Owner Author

Blocked on #324 (comment).

@JoshuaKGoldberg JoshuaKGoldberg added status: blocked and removed status: accepting prs Please, send a pull request to resolve this! labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: blocked type: feature New enhancement or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant