文件名称:Jasmine.JavaScript.Testing.2nd.Edition.1785282042
文件大小:1.25MB
文件格式:PDF
更新时间:2018-08-23 12:01:16
Jasmine JavaScript Testing
Test your JavaScript applications efficiently using Jasmine and React.js About This Book 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. 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 In Detail 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. Table of Contents Chapter 1: Getting Started with Jasmine Chapter 2: Your First Spec Chapter 3: Testing Frontend Code Chapter 4: Asynchronous Testing – AJAX Chapter 5: Jasmine Spies Chapter 6: Light Speed Unit Testing Chapter 7: Testing React Applications Chapter 8: Build Automation