If you want to learn how to develop javascript tests with Jest, this book is for you. In this book, you'll find real-world examples of jest testing, such as testing JQuery event/selector, localStorage, IntersectionObserver, timer, and more. Who this book is for This book is meant for automation testing professionals, software and web testers, and frontend web developers with intermediate-level JavaScript and beginner-level test automation skills. If you're a jasmine/mocha tester seeking to switch to Jest and take advantage of its features, this is an excellent resource. It is essential to have an intermediate understanding of JavaScript programming and a basic comprehension of web testing. Table of Contents Every Software Engineer Needs to Know Type of Testing Methodologies How to develop testable javascript code Javascript Design Patterns How to Setup Jest How to structure your test code jest Basics Testing asynchronous javascript functions with JestMock and SpyMock Functions Matchers Jest Tips and Tricks Code Coverage Configuring Jest Code Coverage Jest.CookBookTips
How to mock JQuery event using JESTHow to mock window property using JESTHow to mock Javascript Event using JESTHow to mock JQuery selector using JESTHow to mock a third-party library using JESTHow to mock javascript setInterval and setTimeout using JestHow to mock/test IntersectionObserver using JESTHow to write a unit test for HTML 5 WebComponent using JestHow to test Jquery ajaxTipsMock XMLHttpRequestTipsany many more..
Santosh Singh,Senior Assistant Editor with The Indian Express, is a senior journalist, political analyst covering Bihar for over 18 years and has overall experience of 26 years in journalism.