Goal: Create a Calculator app & unit tests that can perform Add, Subtract, Multiply & Divide functions and verification.
- Create a new project “calc-app” / GitHub repo
- Bootstrap and extra creativity is not necessary in this homework
- Using JS Classes – implement your math logic
- Include the necessary Node.js dependencies in your package.json
- Use “npm install” to download all the Jest/testing functionality
- Add a test script (ie. calc.test.js) to your project
- Cover the 4 basic math calculations
- Each test must pass before you turn in the homework
- Commit the changes and send me a link to the repo when you’re done.
npm install --save-dev babel-jest @babel/core @babel/preset-env jest
Create a babel.config.js which will allow import to work.