Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

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

Open
1 of 2 tasks
MdialloC19 opened this issue Jan 16, 2024 · 7 comments
Open
1 of 2 tasks

Comments

@MdialloC19
Copy link

MdialloC19 commented Jan 16, 2024

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,

Copy link

welcome bot commented Jan 16, 2024

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

@MdialloC19 MdialloC19 changed the title <!--Every Algorithm ]--> in <!--[JavaScript--> Proposal for Implementing JavaScript Algorithm Tests using Jest or Mocha Jan 16, 2024
@MdialloC19 MdialloC19 changed the title Proposal for Implementing JavaScript Algorithm Tests using Jest or Mocha Proposal for Implementing for JavaScript Algorithms Testing using Jest or Mocha Jan 16, 2024
@MdialloC19
Copy link
Author

I want on !!!!

@karthisp
Copy link

karthisp commented Feb 4, 2024

Can I contribute to this?

@MdialloC19
Copy link
Author

Of course you can do that with jest,

@karthisp
Copy link

karthisp commented Feb 6, 2024

@MdialloC19 I have a question.

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

@MdialloC19
Copy link
Author

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
Copy link

karthisp commented Feb 7, 2024

Got it. Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants