Collection of leetcode, codewars, etc done in Javascript. See other leetcode-* repos for answers in other languages.
There are currently 4 test scripts to choose from:
test
- accepts a target directory to look for*.test.js
files.test:watch
- same astest:target
but runs with--watch
flag.test:codewars
- runs all tests in the codewars folder.test:leetcode
- runs all tests in the leetcode folder.
Run tests for sum-arrays
pnpm run test codewars/8kyu/sum-arrays
Watch tests for sum-arrays
pnpm run test:watch codewars/8kyu/sum-arrays
Run all tests in leetcode folder
pnpm run test:leetcode
Run all tests in 8kyu folder
pnpm run test codewars/8kyu