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

[Task] Add unit test cases for VoiceService

Open tjtanjin opened this issue 1 year ago • 5 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 VoiceService.

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

Additional Context:

  • The VoiceService can be found here
  • An example for AudioService can be found here which may serve as a good source for reference

tjtanjin avatar Oct 08 '24 17:10 tjtanjin

Assign this too please @tjtanjin .

anjumnnit avatar Oct 11 '24 13:10 anjumnnit

Assign this too please @tjtanjin .

Go for it!

tjtanjin avatar Oct 11 '24 18:10 tjtanjin

you can Assign it to other's who can finish it early.

anjumnnit avatar Oct 15 '24 19:10 anjumnnit

@tjtanjin can I work on it?

MadhurSaluja avatar Nov 27 '24 01:11 MadhurSaluja

@tjtanjin can I work on it?

Go for it!

tjtanjin avatar Nov 27 '24 01:11 tjtanjin

For this task, I will:

  • Locate the VoiceService file in the codebase.
  • Review the service’s methods and identify logic that needs testing.
  • Check for existing test coverage and spot gaps.
  • Use the AudioService test file as a reference for structure and patterns.
  • Write new Jest unit test cases for uncovered VoiceService methods.
  • Mock dependencies and external calls as needed.
  • Ensure tests cover edge cases, expected behavior, and error handling.
  • Run tests to confirm coverage and reliability.
  • Keep test code clean, descriptive, and maintainable.
  • Submit updated test file with clear commit message.

olisaagbafor avatar May 28 '25 20:05 olisaagbafor

Closing this stale issue, will re-create a fresh one.

tjtanjin avatar Sep 26 '25 17:09 tjtanjin