Skip to main content
  • Book
  • © 2021

Test-Driven Development with React

Apply Test-Driven Development in Your Applications

Apress

Authors:

  • Teaches practical skills needed to incorporate test-driven development into your daily work using React and a modern front-end tech stack

  • Learn to refactor effectively in order to make your applications’ code more concise and easier to maintain

  • Structured in an easy-to-follow style including real-world cases for many different scenarios that you can apply right away to your next project

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (10 chapters)

  1. Front Matter

    Pages i-xxi
  2. Get Started with Jest

    • Juntao Qiu
    Pages 15-33
  3. Test-Driven Development 101

    • Juntao Qiu
    Pages 35-45
  4. Project Setup

    • Juntao Qiu
    Pages 47-60
  5. Implementing the Book List

    • Juntao Qiu
    Pages 61-83
  6. Implementing the Book Detail View

    • Juntao Qiu
    Pages 85-103
  7. Searching by Keyword

    • Juntao Qiu
    Pages 105-114
  8. State Management

    • Juntao Qiu
    Pages 115-138
  9. Managing Book Reviews

    • Juntao Qiu
    Pages 139-163
  10. Behavior-Driven Development

    • Juntao Qiu
    Pages 165-177
  11. Back Matter

    Pages 179-197

About this book

Learn to use accelerated test-driven development (TDD) to build a React application from scratch. This book explains how your React components will be integrated, and how to refactor code to make it more concise and flexible.

With TDD you can develop a robust test suite to catch bugs, and develop modular, flexible code. Applying your understanding of how HTML, CSS, and JavaScript work in the browser you'll build a web application called Bookish using TDD and mainstream React stack technologies such as React, React-router, and Redux. 

Using higher code quality you'll be able to write executable documentation using Cucumber. This is just one of many essentials in maintaining a practical TDD workflow in your daily workload. Test-Driven Development with React highlights best practices and design patterns that will enable you to write more maintainable and reusable React components.

What You'll Learn

  • Manage your application’s state using Redux
  • Employ professional techniques for backend services
  • Use Cypress as an end-to-end testing framework
  • Utilize React-testing-library for unit and integration tests

Who This Book Is For

Ideal for web application developers who wants to learn how to write high quality code using Test-Driven Development. 

Authors and Affiliations

  • Burwood East, 3151, Australia

    Juntao Qiu

About the author

Juntao Qiu is a senior web application developer at ThoughtWorks. Over the past ten years, he has helped his clients to build solid, extensible and high-quality web applications on a range of projects including traditional web applications using jQuery and JSP (Java Server Pages) to single page applications (SPAs) using Backbone, AngularJS, and React. Juntao knows how to handle the complexity of real-world projects by applying appropriate methodologies including writing clean code and effective automation tests. He also is a technical author who has already published two books in the Chinese language: JavaScript Core Concepts and Practices (2013) and Lightweight Web Application Development (2015). He is passionate about writing blogs and speaking at events. He has a real passion for clean code, refactoring, and Test-Driven Development. Additionally, he does Muay Thai and Boxing in his spare time.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access