- The initial value of the calculation result is 0
- Addition is possible for two numbers
- subtraction is possible for two numbers
- multiplication is possible for two numbers
- Division of two numbers is possible
- Press the AC button to reset to 0
- When expressing calculation results, the decimal point is rounded down if it exceeds 5 decimal places.
- You can only enter up to 9 digits at a time.
- Comma processing when showing calculation results
Everything in the requirements must pass the test
Excute test script in package.json
Select component testing
In Chrome, select start component testing. Choosing a different browser is optional
And then select the test you wrote and run it
Example
Fork the repository and edit it in your repository
- Consider whether a component has only one ‘role’ and ‘responsibility’, or whether a function does only one thing
- Commits also try to keep
SRP
Must
write test code. However, the E2E test does not work currently due to a problem with the current version, so write it as a MOCK test.Prettier
is set, so enable it and write the code.
- What is SRP? - https://brownbears.tistory.com/562
- @cypress/react https://github.com/cypress-io/cypress/tree/master/npm/react#readme
- Cypress guide https://docs.cypress.io/guides/overview/why-cypress