Test-Driving jаvascript Applications: Rapid, Confident, Maintainable Code by Venkat SubramaniamEnglish | November 1, 2016 | ISBN: 1680501747 | 364 pages | EPUB | 4.84 Mb
Debunk the myth that jаvascript is not easily testable. Whether you use Node.js, Express, MongoDB, jQuery, AngularJS, or directly manipulate the DOM, you can test-drive jаvascript. Learn the craft of writing meaningful, deterministic automated tests with Karma, Mocha, and Chai. Test asynchronous jаvascript, decouple and properly mock out dependencies, measure code coverage, and create lightweight modular designs of both server-side and client-side code. Your investment in writing tests will pay high dividends as you create code that's predictable and cost-effective to change.