Sample unit test bench that can be used to test Codewars puzzles.
Sample unit test bench that can be used to test Codewars puzzles.
- TypeScript
- Unit testing with Jest, should allow both JS and TS
- ESLint static linter
Install node modules by running command npm install
Run all the tests with command npm test
.
Run tests in watch mode by npm run watch
.
In VSCode, it is also possible to debug unit tests by using Jest current file
debug command.