This is Uncle Bob's bowling game kata to practice test-driven development. There is very little creativity involved here, as he instructs you in his Powerpoint how to accomplish each step. It's meant more as a repetition exercise to turn these steps and refactorings into muscle memory so that you can apply them to other projects.
His blog post can be found here: http://butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata
yarn install
yarn test:watch
The code as it stands is the completed exercise. To start over, simply delete the index.js
and index.test.js
files. Then create a test file and write the first test, then write the code to make the test pass. Repeat for all five tests to finish the kata.
format
: Runs Prettier to format the codeformat:watch
: Runs Prettier in watch modetest
: Runs all tests using Jesttest:coverage
: Runs all tests and generates a coverage reporttest:watch
: Runs tests in watch mode