GithubHelp home page GithubHelp logo

paige0701 / react-calculator-mission Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ninezero90hy/react-calculator-mission

0.0 1.0 0.0 304 KB

리액트로 계산기 만들어보기 미션

Home Page: https://leafy-sable-757250.netlify.app

Shell 0.82% JavaScript 84.70% CSS 2.23% HTML 12.26%

react-calculator-mission's Introduction

리액트로 계산기 만들어보기 미션

Netlify Status

image

요구사항

  • 계산 결과의 초기값은 0 이다
  • 2개의 숫자에 대해 덧셈이 가능
  • 2개의 숫자에 대해 뺄셈이 가능
  • 2개의 숫자에 대해 곱셈이 가능
  • 2개의 숫자에 대해 나눗셈이 가능
  • AC 버튼을 누르면 0으로 초기화 한다
  • 계산 결과를 표현할 때 소수점 5자리를 초과하면 소수점 버림한다
  • 숫자는 한번에 9자리까지만 입력할 수 있다
  • 계산 결과를 보여줄 때 콤마 처리한다

테스트 요구사항

요구사항에 있는 것은 모두 테스트를 통과해야 한다

테스트 실행 방법

image

패키지 제이슨의 test 스크립트를 실행한다

image

Component Testing을 선택한다

image

Start Component Testing in Chrome을 선택한다 ( 브라우저 선택은 선택사항 )

image

작성한 테스트를 선택해서 실행한다

image

예시

PR 요청

해당 프로젝트를 포크 후 본인 저장소에서 수정한다

  1. 컴포넌트가 한가지 역활책임만을 가지고 있는지, 함수가 한가지 일만 하는지 생각해본다
  2. 커밋도 SRP를 지키도록 노력한다
  3. 반드시 테스트 코드를 작성한다. 단 E2E 테스트는 현재 버젼 문제로 인해 현재는 작동되지 않으므로 MOCK 테스트로 작성하도록 한다
  4. Prettier 설정이 되어 있으므로 활성화해서 코드를 작성하도록 한다

참고

react-calculator-mission's People

Contributors

paige0701 avatar ninezero90hy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.