일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- Jest Matchers
- aws s3
- ESLint
- 마이크로프론트엔드
- 전역 상태 관리
- Husky
- 에프랩
- 패스트캠퍼스
- CICD
- 비동기 테스트
- 모노레포
- jest
- F-Lab
- 주간 회고
- 프론트엔드
- 데이터 타입
- React
- 패캠
- TDD
- github actions
- 인프런 멘토링
- virtual DOM
- F-Lab 오티
- Reconsiliation
- F-Lab 회고
- javascript
- 가상돔
- Prettier
- context api
- Frontend
- Today
- Total
목록jest (2)
bytrustu tech blog
비동기 함수를 테스트해보자. https://jestjs.io/docs/asynchronous Testing Asynchronous Code · Jest It's common in JavaScript for code to run asynchronously. When you have code that runs asynchronously, Jest needs to know when the code it is testing has completed, before it can move on to another test. Jest has several ways to handle this. jestjs.io async.js fetchProduct 함수의 매개변수가 error의 경우 Error를 발생합니다. const..
Jest 초기 설정과 간단한 사용법에 대해 알아보자. 공식문서: https://jestjs.io/ 01. 환경설정 npm Jest를 설치하기 이전에 외부 라이브러리를 설치하고 관리하기 위해 npm이 필요하다. 프로젝트를 다른 개발자들도 동일한 개발환경 제공을 위해 dev추가도 하였다. npm init --y npm install jest --global npm install jest --save-dev npm install @types/jest Jest 초기 설정 jest --init Jest 초기 설정을 진행하면 Jest를 사용할 수 있도록 jest.config.js 파일이 생성된 것을 확인할 수 있다. 여기까지 진행 되었다면 이 프로젝트는 Jest를 사용할 준비가 되었다. 🎉 02. 테스트 테스트 작..