Giter Club home page Giter Club logo

lodash-testcode's Introduction

lodash-testcode

프로젝트 셋업

  • pnpm 사용해주세요!
pnpm install

# 테스트 실행
pnpm test

# 테스트 실행 (watch 모드)
pnpm test:watch

스터디 진행

  1. 매주 테스트 대상 함수를 선정합니다.
  2. study/<본인 이름>/<스터디 순번> feature 브랜치를 생성합니다. (ex. study/shioo.park/1)
  3. tests/<본인 이름>/<스터디 순번>.<테스트 대상 파일명>.test.ts 파일을 생성합니다.
  4. pnpm test:watch 명령어로 테스트를 실행합니다.
  5. 작성한 테스트 코드를 commit하고 PR을 생성합니다.

테스트 코드 작성 스타일

describe로 테스트 묶음(suite)을 만들고, it으로 테스트 케이스를 작성합니다.

describe('테스트 대상 함수명', () => {
  it('테스트 케이스 설명', () => {
    // 테스트 코드
  });
});

원하는 만큼 describeit을 중첩해서 사용해도 됩니다.

참고로, it 대신 test를 사용해도 됩니다.

Jest 공식 문서를 잘 보고, 가능한 한 다양한 기능을 사용해봐요!

lodash-testcode's People

Contributors

custardcream98 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.