This project is a React-based calculator application that contains a few problems.The repo contains 2 test files, each containing 1 or more tests that fail. Your task is to resolve the code that leads to the failed tests.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
-
Fork the repository into your account.
-
Clone the repository:
git clone https://github.com/YOUR-USERNAME/multicalc.git
-
Navigate to the project directory:
cd multicalc -
Install the dependencies:
npm install
To start the development server, run:
npm run devThis will start the application and you can view it in your browser at http://localhost:3000.
To run the tests in the CLI, use the following command:
npm run testThis will execute the test suite and display the results in the terminal.
- Be sure to pay close attention to all of the text each test outputs.
- Fix each error highlighted by the tests.
- Don't make any changes to any of the test files.
- Once complete, open a PR against the forked repo and submit the link with the assignment form.
Make sure that the todo assignment and this assignment are both done. You will be submitting both PR links on the same form.
- Fork Code-the-Dream-School/multicalc-tests to your own GitHub account.
- Clone that down to you local machine and create a working branch.
- Run through the tests - they should fail because you haven't debugged the source files yet. (IMPORTANT: Don’t make any changes to the test files!)
- Investigate the source files and iteratively make changes such that more and more test cases start to pass.
- Once all your tests pass, publish your working branch to GitHub.
- Open a PR againt your fork this repo (likely, https://github.com/${USER}/multicalc-tests/
- Add the PR link into the second URL field for the week's assignment submission.