Kata Bugs Zero TS
Requirements
- make (optional)
- docker
- docker-compose
or
- node
- npm
How does it work
This project is built with docker-compose and make. You can run the commands directly with npm but it is highly recommended to use make with docker-compose because you make sure to run it with the same version. Make raises the container with docker-compose, executes the task and removes the container, in this way the local machine is clean once you execute the commands.
Example commands
- with make
make test
- with docker-compose
docker-compose up -d
docker-compose exec kata_bugs_zero_ts npm run test
dokcer-compose down
- with npm
npm run test
Make commands
make install # install all project dependencies
make install ARGS="date-fns" # install new dependencie
make install ARGS="-D typescript" # install new dev dependencies
make eslint-check # run eslint check
make eslint-fix # run eslint fix
make test # run jest test
make test-watch # run jest test with watch all files
make test-coverage # run jest test coverage
make test-all # run eslint fix and jest test coverage
If you execute the command
make test-watch
make sure to exit with theq
of the jest watch options and not withCtrl C
, because this would finish themake
task without destroying the docker container.