Template for code katas written in JavaScript.
- Install https://nodejs.org/en/ (LTS/Current if possible, >=18.0.0 is required)
- run "npx degit https://github.com/jwiberg/kata-template-js.git"
- If that doesn't work clone or fork this repository
- Run "npm install"
- Start coding (check source code for examples and commands below)
"scripts": {
"test": "eslint *.js --fix && ava",
"format": "eslint *.js --fix",
"watch": "ava --watch"
},
- npm test
- run tests
- npm run format
- format and check code with eslint
- npm run watch
- run ava test runner in watch mode (auto "compile" and automatic test runs)