Jest is an opensource project maintained by Facebook. It works well with projects using React , but not limited to that. It can test any other projects written using, TypeScript , Angular , Vue , Node.js , Babel , even with vanilla JavaScript. In fact, this post is about Setting up a simple Node based project with Jest Framework.

Jest is very similar to Mocha as a tool with few differences:

Jest requires very less configurations than Mocha. Jest mostly works Out-of-the-box.
Jest is all batteries included. It means, it works without having to interact with other testing libraries to perform its job.
Mocha is more established and around much before Jest.

#javascript #jest

Setup JavaScript Testing with Jest
1.30 GEEK