Cognizant interview question

How Jest testing library works?