MakeContributions / DSA

Data Structure and Algorithm (DSA) contributions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal for Implementing for JavaScript Algorithms Testing using Jest or Mocha

MdialloC19 opened this issue · comments

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

  • Yes
  • No

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,

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

I want on !!!!

Can I contribute to this?

Of course you can do that with jest,

@MdialloC19 I have a question.

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

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

Got it. Thank you