Cognizant Interview Question

How Jest testing library works?