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.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay