Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Mastering React Test-Driven Development
Mastering React Test-Driven Development

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

eBook
$22.99 $33.99
Paperback
$41.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Mastering React Test-Driven Development

Part 1 – Exploring the TDD Workflow

Part 1 introduces all of the basic techniques you’ll need to test-drive React applications. As you build more of the application, you will create a set of library functions that help to simplify and accelerate your testing. The goal is to give you both theoretical and practical advice that will help you apply the test-driven development workflow to your daily work.

This part includes the following chapters:

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore the TDD process, how it works, and why it will help you write maintainable React apps
  • Develop a component testing framework from scratch, which will help you understand the mechanics of good unit testing
  • Reduce complexity by using unit tests and end-to-end acceptance tests to drive the design of your apps

Description

Test-driven development (TDD) is a programming workflow that helps you build your apps by specifying behavior as automated tests. The TDD workflow future-proofs apps so that they can be modified without fear of breaking existing functionality. Another benefit of TDD is that it helps software development teams communicate their intentions more clearly, by way of test specifications. This book teaches you how to apply TDD when building React apps. You’ll create a sample app using the same React libraries and tools that professional React developers use, such as Jest, React Router, Redux, Relay (GraphQL), Cucumber, and Puppeteer. The TDD workflow is supported by various testing techniques and patterns, which are useful even if you’re not following the TDD process. This book covers these techniques by walking you through the creation of a component test framework. You’ll learn automated testing theory which will help you work with any of the test libraries that are in standard usage today, such as React Testing Library. This second edition has been revised with a stronger focus on concise code examples and has been fully updated for React 18. By the end of this TDD book, you’ll be able to use React, Redux, and GraphQL to develop robust web apps.

Who is this book for?

This book is for frontend developers who are looking to improve their testing practices and increase the quality and maintainability of their applications. To make the most of this book, you’ll need knowledge of the JavaScript programming language.

What you will learn

  • Build test-driven applications using React 18 and Jest
  • Understand techniques and patterns for writing great automated tests
  • Use test doubles and mocks effectively
  • Test-drive browser APIs, including the Fetch API and the WebSocket API
  • Integrate with libraries such as React Router, Redux, and Relay (GraphQL)
  • Use Cucumber.js and Puppeteer to build Behaviour- Driven Development (BDD) style tests for your applications
  • Build and test async Redux code using redux-saga and expect-redux
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 30, 2022
Length: 564 pages
Edition : 2nd
Language : English
ISBN-13 : 9781803247120
Vendor :
Facebook
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Publication date : Sep 30, 2022
Length: 564 pages
Edition : 2nd
Language : English
ISBN-13 : 9781803247120
Vendor :
Facebook
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 130.97
Mastering React Test-Driven Development
$41.99
React and React Native
$49.99
React Projects
$38.99
Total $ 130.97 Stars icon

Table of Contents

25 Chapters
Part 1 – Exploring the TDD Workflow Chevron down icon Chevron up icon
Chapter 1: First Steps with Test-Driven Development Chevron down icon Chevron up icon
Chapter 2: Rendering Lists and Detail Views Chevron down icon Chevron up icon
Chapter 3: Refactoring the Test Suite Chevron down icon Chevron up icon
Chapter 4: Test-Driving Data Input Chevron down icon Chevron up icon
Chapter 5: Adding Complex Form Interactions Chevron down icon Chevron up icon
Chapter 6: Exploring Test Doubles Chevron down icon Chevron up icon
Chapter 7: Testing useEffect and Mocking Components Chevron down icon Chevron up icon
Chapter 8: Building an Application Component Chevron down icon Chevron up icon
Part 2 – Building Application Features Chevron down icon Chevron up icon
Chapter 9: Form Validation Chevron down icon Chevron up icon
Chapter 10: Filtering and Searching Data Chevron down icon Chevron up icon
Chapter 11: Test-Driving React Router Chevron down icon Chevron up icon
Chapter 12: Test-Driving Redux Chevron down icon Chevron up icon
Chapter 13: Test-Driving GraphQL Chevron down icon Chevron up icon
Part 3 – Interactivity Chevron down icon Chevron up icon
Chapter 14: Building a Logo Interpreter Chevron down icon Chevron up icon
Chapter 15: Adding Animation Chevron down icon Chevron up icon
Chapter 16: Working with WebSockets Chevron down icon Chevron up icon
Part 4 – Behavior-Driven Development with Cucumber Chevron down icon Chevron up icon
Chapter 17: Writing Your First Cucumber Test Chevron down icon Chevron up icon
Chapter 18: Adding Features Guided by Cucumber Tests Chevron down icon Chevron up icon
Chapter 19: Understanding TDD in the Wider Testing Landscape Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(8 Ratings)
5 star 62.5%
4 star 25%
3 star 0%
2 star 0%
1 star 12.5%
Filter icon Filter
Top Reviews

Filter reviews by




Mina Mikhael Oct 05, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I didn’t read the whole book just yet, but I can tell it’s a great book by looking at the way how things are organizedDid like they have added hyperlinks for code snippets and other resources.
Amazon Verified review Amazon
Amazon Customer Sep 30, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Just what I was looking for, super helpful and clear. Please ignore the trolls!
Amazon Verified review Amazon
Butchy Brannan Oct 19, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I have bought several books related to React that just hover over the concept of testing and how to perform basic unit tests and using jest. This book goes above and beyond, and will be a great reference for me next several months. There are much more examples than I was even expecting.
Amazon Verified review Amazon
Robin Oct 15, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book teaches you how to build React applications using a TDD approach. It contains tons of code snippets/diagrams, exercises, and even a link to the GitHub repository associated with this book. The content is broken up into steps making it easier for readers to follow and understand. I highly recommend this book for those wanting to learn more about TDD with React as you will get a lot of practice!
Amazon Verified review Amazon
Amazon Customer Sep 30, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very helpful, well written, thoroughly enjoyed.
Amazon Verified review Amazon