2nd Edition. — Packt Publishing, 2015. — Code Only. — ISBN: 978-1-78528-204-1.
Код примеров к книге в формате PDF, EPUB, MOBI.Take your testing of JavaScript applications to a new level of efficiency and reliability with the help of this book. Starting with the fundamentals of Jasmine and behavior-driven development (BDD), you will learn about tooling and automation. You will learn how to create a sustainable code base with the help of Jasmine. You will also take a look at integrated testing with React.js and Karma, and how you can speed this process up by faking AJAX requests. As you progress through the book, you will learn about the challenges of testing an application built on top of a framework and how you can prevent your application from suffering from dependency management. You will understand the concept of client-side and server-side rendering and test applications using React.js. You will also learn to automate using webpack and work with JavaScript module systems using ECMA Script 6 (ES6) modules.
By the end of this book, you will be a competent web developer with good knowledge and a strong understanding of how to efficiently use the Jasmine framework for testing purposes.
What You Will Learn:Understand and use the power of Jasmine to create better and more maintainable code bases;
Drive your application development entirely by tests;
Write modular and reusable code through the power of ECMA Script 6 (ES6) modules;
Use asynchronous tests, stubs, and spies optimally;
Test drive a React.js single-page application;
Optimize your code to unleash the power of tooling and automation.
Leverage the power of unit testing React.js to develop full-fledged JavaScript applications.
Learn the best practices of modularization and code organization while scaling your application.
Enhance your practical skills required to develop applications using the Jasmine framework in a step-by-step manner.
Who This Book Is For:This book is for web developers and designers who work with React.js and JavaScript and who are new to unit testing and automation. It's assumed that you have a basic knowledge of JavaScript and HTML.