Jest Exercise

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.

First of all

Install Yarn in your machine:

  • brew install yarn

Get Started

  • Run yarn install to install all dependencies.
  • Run yarn test to run Jest

What you must to do?

  • Implement all the common operations of a simple calculator.
  • Implement all the unit test for each operation.