Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Prettier
- CICD
- 모노레포
- Reconsiliation
- Frontend
- jest
- Husky
- TDD
- React
- 패스트캠퍼스
- aws s3
- 패캠
- F-Lab 오티
- 데이터 타입
- 마이크로프론트엔드
- 비동기 테스트
- context api
- 전역 상태 관리
- javascript
- virtual DOM
- github actions
- F-Lab
- 인프런 멘토링
- F-Lab 회고
- ESLint
- 주간 회고
- 에프랩
- 가상돔
- Jest Matchers
- 프론트엔드
Archives
- Today
- Total
목록Jest Matchers (1)
bytrustu tech blog
[Jest] Matchers 사용하기
Jest Matchers 사용법에 대해 알아보자. https://jestjs.io/docs/using-matchers Using Matchers · Jest Jest uses "matchers" to let you test values in different ways. This document will introduce some commonly used matchers. For the full list, see the expect API doc. jestjs.io Common Matchers toBe: 사용하는 코드가 정확하게 값을 체크한다. loop 중 내용도 모두 체크 가능하다. test('2+2 의 결과는 4이다.', () => { expect(2 + 2).toBe(4); }); test('Arra..
TDD
2022. 12. 18. 03:26