Closed JoshuaKGoldberg closed 2 months ago
hey, I would love to contribute, can you please help me. I"m a beginner here...Thanks
👋 hey @shobhit9957, great! My advice would be to:
Cheers!
I'm planning on writing a more helpful blog post soon. Hopefully that list is useful until then.
hey 😊thanks @JoshuaKGoldberg will follow the steps you've provided and update you with the feedbacks!,
Ah, this was previously done. Nice.
Bug Report Checklist
main
branch of the repository.Overview
695 added a bunch of code changes. I didn't fully unit test them - not because I was too impatient to write tests (me?! never!!), but because I wanted to leave some good first issues as followups. Definitely that.
augmentOptionsWithExcludes
is missing unit test coverage for ~several dozen lines~ one or two lines.augmentOptionsWithExcludes.test.ts
only tests the case of fully automated usage. It doesn't test what happens when the user is prompted for anything. Let's add tests toaugmentOptionsWithExcludes.test.ts
that exercise the calls toprompt
!Additional Info
You'll likely need to use Vitest mocking - specifically,
vi.mock
. Search forvi.mock("@clack/prompts"
in code to see how other unit tests accomplish this.We don't need complete 100% unit test coverage of the file. If the tests are giving you grief, feel free to send an incomplete Draft PR with comments asking for help. ❤️
Note that the code might have been refactored since this issue was filed. Names might be slightly off. The general spirit of this issue should still be valid though.