1. Introduction to Jest: Jest is a widely adopted JavaScript testing framework developed by Facebook. It provides an all-in-one solution…