This is a simple calculator app. You must to implement all the basic operations of a common calculator and all unit tests for each operation using TDD. The level of abstraction in this implementation depends on you. Always keep in mind that you must to think through the tests before implementing the function. The purpose of this exercise is to practice TDD.
Install Yarn in your machine:
brew install yarn
- Run
yarn install
to install all dependencies. - Run
yarn test
to run Jest
- Implement all the common operations of a simple calculator.
- Implement all the unit test for each operation.