MakeContributions / DSA

Data Structure and Algorithm (DSA) contributions
MIT License
716 stars 771 forks source link

Proposal for Implementing for JavaScript Algorithms Testing using Jest or Mocha #1313

Open MdialloC19 opened 8 months ago

MdialloC19 commented 8 months ago

Information about Algorithm

It's about testing our all algorithms in JS by Jest Framework or Mocha

Have you read the Contributing.md and Code of conduct

I believe that incorporating automated testing using Jest or Mocha will significantly enhance the reliability and maintainability of the algorithms in your project. It aligns with the best practices for ensuring the correctness and robustness of the codebase.

If you have any questions or concerns regarding this proposal, please feel free to reach out. I am excited about the potential improvements this can bring to the project, and I am willing to actively contribute to its implementation.

Looking forward to your feedback and collaboration.

Best regards,

welcome[bot] commented 8 months ago

Thanks for opening your first issue here! Be sure to follow the issue template!

MdialloC19 commented 8 months ago

I want on !!!!

karthisp commented 8 months ago

Can I contribute to this?

MdialloC19 commented 8 months ago

Of course you can do that with jest,

karthisp commented 7 months ago

@MdialloC19 I have a question.

Shall I add a test file for each data structure? Example: javascript > src > arrays > array.test.js

MdialloC19 commented 7 months ago

You must add a test file for each data structure, is a common and recommended practice in software development, especially when working with automated testing frameworks like Jest or Mocha. For every type of algorithm (for example arrays) create in side a test folder (test). And implement for every algorithm a test file : like this : javascript > src > arrays >test> counting-inversions.test.js

karthisp commented 7 months ago

Got it. Thank you