Testing tools – Jest and Protractor

Gone are the days when the client-side code didn't require unit testing. With the evolution of client-side frameworks, the testing possibilities also improved. There are many frameworks and tools available for unit testing, end-to-end testing, and more. JHipster creates unit tests for client-side code using Jest out of the box and also supports creating end-to-end tests using Protractor.

Jest (https://jestjs.io/) is a JavaScript testing framework. It can work with TypeScript, Angular, React, and Vue.js. It has a simple API and great features and integrates well with continuous integration tools.

Protractor (http://www.protractortest.org) is an end-to-end testing framework developed by the Angular team. It was originally intended for Angular and AngularJS applications but it is flexible enough to be used with any framework, such as React, jQuery, and Vue.js. Protractor runs end-to-end tests against real browsers using the Selenium web driver API.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.27.232