react-chatbotify icon indicating copy to clipboard operation
react-chatbotify copied to clipboard

[Task] Add unit test cases for useSubmitInputInternal hook

Open tjtanjin opened this issue 3 months ago • 4 comments

Task Description: Currently, we run unit tests using jest which can be found here.

However, the test cases are not yet comprehensive enough and work can be done to cover more grounds. Specifically for this issue, we hope to add test cases for the useSubmitInputInternal hook.

Deliverable(s): New unit test cases that cover the testing of the useSubmitInputInternal hook.

Additional Context:

  • Hooks API can be found here
  • Existing unit test for hooks can be found here which may serve as a good source for reference.

If you find this project useful, please consider giving it a star—it really helps! Also, feel free to check out other repositories under the organization as well as a new vibe-engineers initiative for more opportunities to contribute! 😊

tjtanjin avatar Sep 26 '25 18:09 tjtanjin

Hey @tjtanjin I have opened a pr for this issue please take a look. Thank you.

Suvrat1629 avatar Oct 05 '25 05:10 Suvrat1629

Hey @Suvrat1629, appreciate the PR! That said, if you're looking to take on subsequent issues, it's recommended to indicate your interest and be assigned the issue first before working on it. This helps avoid duplicate efforts which has happened in the past year. Hope you understand!

Separately, your current PR is failing a unit test 🥹

tjtanjin avatar Oct 05 '25 07:10 tjtanjin

@tjtanjin Ok sorry about that I saw that no one had asked for an assignment and assumed this issue was open for work so I opened a pr next time around I will ask you for assignment. Thank you!

Suvrat1629 avatar Oct 05 '25 07:10 Suvrat1629

Separately, your current PR is failing a unit test 🥹

Yes the logs are pretty huge but I taking a look at it.

Suvrat1629 avatar Oct 05 '25 07:10 Suvrat1629