34 Commits

Author SHA1 Message Date
a044c57401 docs: Update script usage in CONTRIBUTING.md (#1587) 2023-11-08 09:16:52 +05:30
86d333ee94 feat: Test running overhaul, switch to Prettier & reformat everything (#1407)
* chore: Switch to Node 20 + Vitest

* chore: migrate to vitest mock functions

* chore: code style (switch to prettier)

* test: re-enable long-running test

Seems the switch to Node 20 and Vitest has vastly improved the code's and / or the test's runtime!

see #1193

* chore: code style

* chore: fix failing tests

* Updated Documentation in README.md

* Update contribution guidelines to state usage of Prettier

* fix: set prettier printWidth back to 80

* chore: apply updated code style automatically

* fix: set prettier line endings to lf again

* chore: apply updated code style automatically

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2023-10-04 02:38:19 +05:30
cb4c40e95c docs: improve the contributing guidelines (#1271) 2022-12-18 15:50:06 +05:30
16fa774012 chore: only test changed packages (#1194) 2022-10-20 15:59:09 +02:00
9a3d64c91f chore: add instruction for installing dependencies (#1120) 2022-10-07 10:50:52 +05:30
ea7d06ad57 tests: Levenshtein Distance (dynamic programming solution) (#1114) 2022-10-06 00:38:23 +05:30
7f479b8ced merge: consistent list syntax in CONTRIBUTING.md (#921)
* feat: add style and run scripts on pre-commit hooks

* Update package-lock.json

* Update CONTRIBUTING.md

* Add period at the end of lines
2022-03-12 10:30:46 +05:30
8c64f99316 Officially switching to ES Module system. 2021-10-11 16:23:02 +02:00
b13b12e88c chore: merge Fix/742 migrate doctest to jest (#749)
* Remove QuickSelect doctest

There are more Jest test cases already.

* Remove AverageMedian doctest

Already migrated to jest

* Migrate doctest for BinaryExponentiationRecursive.js

(also remove inline "main" test method)

* Migrate doctest for EulersTotient.js

(also remove inline "main" test method)

* Migrate doctest for PrimeFactors.js

(also remove inline "main" test method)

* Migrate doctest for BogoSort.js

Re-write prototype-polluting helper methods, too.

(also remove inline test driver code)

* Migrate doctest for BeadSort.js

(also remove inline test driver code)

* Migrate doctest for BucketSort.js

(also remove inline test driver code)

* Migrate doctest for CocktailShakerSort.js

(also remove inline test driver code)

* Migrate doctest for MergeSort.js

(also remove inline test driver code)

* Migrate doctest for QuickSort.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

* Migrate doctest for ValidateEmail.js

* Migrate doctest for ConwaysGameOfLife.js

(remove the animate code, too)

* Remove TernarySearch doctest

Already migrated to jest

* Migrate doctest for BubbleSort.js

(also remove inline test driver code)

* Remove doctest from CI and from dependencies

relates to #742
fixes #586

* Migrate doctest for RgbHsvConversion.js

* Add --fix option to "standard" npm script

* Migrate doctest for BreadthFirstSearch.js

(also remove inline test driver code)

* Migrate doctest for BreadthFirstShortestPath.js

(also remove inline test driver code)

* Migrate doctest for EulerMethod.js

(also remove inline test driver code)

Move manual test-code for plotting stuff in the browser in a distinct file, too. Those "*.manual-test.js" files are excluded from the UpdateDirectory.mjs script, as well.

* Migrate doctest for Mandelbrot.js

(also remove inline test driver code & moved manual drawing test into a *.manual-test.js)

* Migrate doctest for FloodFill.js

* Migrate doctest for KochSnowflake.js

(also move manual drawing test into a *.manual-test.js)

* Update npm lockfile

* Update README and COMMITTING with a few bits & bobs regarding testing & code quality
2021-10-07 12:33:38 +05:30
1b5c705aa9 chore: Fix grammatical errors 2021-06-17 11:02:01 +05:30
0c61424d95 Fix some typos in CONTRIBUTING.md 2021-06-16 23:56:11 +03:00
d31b036f73 Doctests Contribution Guidelines | Changed Section Position and Cleanup 2020-11-02 19:59:16 +05:30
c8c715feb4 Doctest Contribution Guidelines | Guidelines for running doctests 2020-11-02 19:56:52 +05:30
f9b95f4d87 Doctest Contribution Guidelines | Implementation details and reference 2020-11-02 19:56:28 +05:30
e720b7d5c9 Doctest Contribution Guidelines | Added Description 2020-11-02 19:56:03 +05:30
ed4b295a43 Update CONTRIBUTING.md 2020-05-06 17:56:26 +05:30
81ea260804 Fixed typo in CONTRIBUTING.md file (#148)
* Fixed typo in CONTRIBUTING.md file

* Update CONTRIBUTING.md

Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-05-05 16:31:03 +05:30
1323b90a7c fix broken link 2020-05-04 13:02:47 +05:30
8c2aa0f296 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:09:00 +05:30
5267cbaa6a Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:08:51 +05:30
5c1b4e79ae Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:08:41 +05:30
31cd69ea84 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:08:32 +05:30
e3e4d97066 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:08:22 +05:30
b74391bbe8 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:08:12 +05:30
f8a78b3b68 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:07:57 +05:30
abb90661a5 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:07:47 +05:30
1fd3a0dc4a Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:07:35 +05:30
362cd0083e Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:07:19 +05:30
2bad146a96 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:07:10 +05:30
7dd45f8578 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:06:58 +05:30
edfb047f04 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:04:20 +05:30
de980d60f1 Update CONTRIBUTING.md
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-05-03 20:04:09 +05:30
90e13c0ad9 Update CONTRIBUTING.md 2020-05-03 17:56:44 +05:30
ea169a26e0 Contributing guidelines 2020-05-03 01:32:29 +05:30