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 | 31 |
Tags
- 주간 회고
- 전역 상태 관리
- 패캠
- aws s3
- CICD
- 인프런 멘토링
- 모노레포
- 마이크로프론트엔드
- F-Lab 회고
- Prettier
- javascript
- Husky
- 프론트엔드
- context api
- jest
- ESLint
- 가상돔
- TDD
- 비동기 테스트
- virtual DOM
- Reconsiliation
- 에프랩
- React
- Frontend
- Jest Matchers
- github actions
- 패스트캠퍼스
- 데이터 타입
- F-Lab 오티
- F-Lab
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