Skip to product information
1 of 1

Daniel Irvine,Justin Searls

Mastering React Test-Driven Development: Build simple and maintainable web apps with React, Redux, and GraphQL

Mastering React Test-Driven Development: Build simple and maintainable web apps with React, Redux, and GraphQL

Low Stock: Only 2 copies remaining
Regular price £21.77 GBP
Regular price £29.99 GBP Sale price £21.77 GBP
27% OFF Sold out
Tax included. Shipping calculated at checkout.

YOU SAVE £8.22

  • Condition: Brand new
  • UK Delivery times: Usually arrives within 2 - 3 working days
  • UK Shipping: Fee starts at £2.39. Subject to product weight & dimension
Trustpilot 4.5 stars rating  Excellent
We're rated excellent on Trustpilot.
  • More about Mastering React Test-Driven Development: Build simple and maintainable web apps with React, Redux, and GraphQL


This book teaches test-driven and behavior-driven development techniques for building React applications, with a focus on concise code examples and updated information for React 18. It is for frontend developers who want to improve their testing practices and increase the quality and maintainability of their applications.

Format: Paperback / softback
Length: 564 pages
Publication date: 30 September 2022
Publisher: Packt Publishing Limited


Test-driven and behavior-driven development techniques are essential for building confident and maintainable React applications. This comprehensive book will guide you through the process of implementing TDD in your React development workflow.

Chapter 1: Introduction to Test-Driven Development

Learn about the TDD process, its benefits, and how it can help you write better code. Understand the importance of specifying behavior as automated tests and how TDD can future-proof your apps.

Chapter 2: Setting Up Your Development Environment

Set up your development environment with React, Redux, and GraphQL. Install the necessary dependencies and tools, such as Jest, React Router, Redux, Relay (GraphQL), Cucumber, and Puppeteer.

Chapter 3: Writing Your First Test

Write your first test using Jest, a popular testing library for React. Create a simple component and test it using the `expect` function.

Chapter 4: Component Testing Framework

Develop a component testing framework from scratch. Understand the mechanics of good unit testing and how it can help you reduce complexity in your code. Learn about testing techniques and patterns, such as shallow rendering, snapshot testing, and end-to-end testing.

Chapter 5: Integration Testing and Behavior-Driven Development

Integrate your components with other components and test them using integration tests. Use behavior-driven development (BDD) to specify the behavior of your components in natural language.

Chapter 6: Continuous Integration and Deployment

Set up continuous integration and deployment processes to automate your testing and deployment. Use tools such as Travis CI, CircleCI, and Docker to streamline your workflow.

Chapter 7: Advanced Topics

Explore advanced topics such as testing React components with state, testing asynchronous code, and testing React Native apps.

By the end of this book, you will have a solid understanding of TDD and behavior-driven development techniques. You will be able to use React, Redux, and GraphQL to develop robust web apps with greater confidence.

Whether you are a beginner or an experienced React developer, this book will provide you with the knowledge and skills you need to succeed in your career.

Weight: 1026g
Dimension: 190 x 235 x 33 (mm)
ISBN-13: 9781803247120
Edition number: 2 Revised edition

UK and International shipping information

UK Delivery and returns information:

  • Delivery within 2 - 3 days when ordering in the UK.
  • Shipping fee for UK customers from £2.39. Fully tracked shipping service available.
  • Returns policy: Return within 30 days of receipt for full refund.

International deliveries:

Shulph Ink now ships to Australia, Belgium, Canada, France, Germany, Ireland, Italy, India, Luxembourg Saudi Arabia, Singapore, Spain, Netherlands, New Zealand, United Arab Emirates, United States of America.

  • Delivery times: within 5 - 10 days for international orders.
  • Shipping fee: charges vary for overseas orders. Only tracked services are available for most international orders. Some countries have untracked shipping options.
  • Customs charges: If ordering to addresses outside the United Kingdom, you may or may not incur additional customs and duties fees during local delivery.
View full details