/users
/posts
/slides
/apps
/books
mysetting
/users
/posts
/slides
/apps
/books
2022-03-18 01:52
이동욱 (향로)
엔지니어@inflab
Jest로 Error 검증시 catch 보다는 expect
Jest를 통한 테스트를 작성하다보면 Exception에 대한 검증을 작성해야할 때가 있다.
이럴때 보통 2가지 방법 중 하나를 선택한다.
try ~ catch
expect.rejects.toThrowError
실제 코드로는 다...
더보기
테스트코드
exception
How to test the type of a thrown exception in Jest
jest
toThrow
테스트 코드
+ 더보기
기억보단 기록을
0
0
24
댓글
댓글 달기
About
Badge
Contact
Activity
Terms of service
Privacy Policy