[Jest] Matcher

1. Matcher? 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. matcher란 입력을 해석하고 기댓값과 일치하는지 (혹은 일치하지 않는지) 판별할 때 주로 사용된다. 여기서 .toBe가 matcher에 해당한다. 2. toBe & toEqual 지금을 … 더 읽기