DEV Community

Bregwin Jogi
Bregwin Jogi

Posted on

Trying bigger tasks in Open Source

I started with trying to work on bigger tasks in open source projects, so that I can improve my skills. I started it last week, and you can see my blog for that here: [link]

This week I worked a project called react-chatbotify which is a library for a creating custom chatbots, it was a very beginner-friendly repo and there were already several tasks labelled for new contributors. I worked on an issue for adding new test cases to a component that allows the user to add custom checkboxes for their chatbot.

They were using a library called testing-framework on top of Jest which allows testing similar to how the user would interact with components (right-clicking a button). I wasn't familiar with this library at first, but I learned more about it by working on this issue. I looked at the existing test cases to see how it was implemented and starting adding test cases for the components. Once I completed most of them, I ran the test file, 4 of the tests ran, but the 5th one was throwing an issue.

Image description

After some debugging, I realized the checkboxes were not selected properly and changed the way how I selected them. This fixed the issue and all the test cases passed.

Image description

Once I did a review of the code to see everything works as expected, I made a pull request for it.

Top comments (0)