Mastering React Test-Driven Development

Implement TDD for your React applications using Jest, React Router, Redux, and GraphQL/Relay. Learn BDD and end-to-end acceptance testing with CucumberJS and Puppeteer.

Mastering React Test-Driven Development

Daniel Irvine
New Release!

Implement TDD for your React applications using Jest, React Router, Redux, and GraphQL/Relay. Learn BDD and end-to-end acceptance testing with CucumberJS and Puppeteer.
Packt Subscription
FREE
$9.99/m after trial
eBook
$12.80
RRP $31.99
Save 59%
Print + eBook
$39.99
RRP $39.99
What do I get with a Packt subscription?
  • Exclusive monthly discount - no contract
  • Unlimited access to entire Packt library of 6500+ eBooks and Videos
  • 120 new titles added every month, on new and emerging tech
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the subscription reader
$0.00
$12.80
$39.99
$9.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start a FREE 10-day trial

Frequently bought together


Mastering React Test-Driven Development Book Cover
Mastering React Test-Driven Development
$ 31.99
$ 12.80
Learning React [Video] Book Cover
Learning React [Video]
$ 124.99
$ 50.00
Buy 2 for $62.80
Save $94.18
Add to Cart

Book Details

ISBN 139781789133417
Paperback496 pages

Book Description

Many programmers are aware of TDD but struggle to apply it beyond basic examples. This book teaches how to build complex, real-world applications using Test-Driven Development (TDD). It takes a first principles approach to the TDD process using plain Jest and includes test-driving the integration of libraries including React Router, Redux, and Relay (GraphQL).

Readers will practice systematic refactoring while building out their own test framework, gaining a deep understanding of TDD tools and techniques. They will learn how to test-drive features such as client- and server-side form validation, data filtering and searching, navigation and user workflow, undo/redo, animation, LocalStorage access, WebSocket communication, and querying GraphQL endpoints.

The book covers refactoring codebases to use the React Router and Redux libraries. via TDD. Redux is explored in depth, with reducers, middleware, sagas, and connected React components. The book also covers acceptance testing using Cucumber and Puppeteer.

The book is fully up to date with React 16.9 and has in-depth coverage of hooks and the ‘act’ test helper.

Table of Contents

What You Will Learn

  • Build test-driven applications using React 16.9+ and Jest
  • Build complete web applications using a variety of HTML input elements
  • Understand the different types of test double and when to apply them
  • Test-drive the Integration of libraries such as React Router, Redux, and Relay (GraphQL)
  • Learn when to be pragmatic and how to apply TDD shortcuts
  • Test-drive interaction with browser APIs including fetch and WebSockets
  • Use Cucumber.js and Puppeteer to build BDD-style acceptance tests for your applications
  • Build and test async Redux code using redux-saga and expect-redux

Authors

Table of Contents

Book Details

ISBN 139781789133417
Paperback496 pages
Read More

Read More Reviews

Recommended for You

Learning React [Video] Book Cover
Learning React [Video]
$ 124.99
$ 50.00
Mastering AWS Development [Video] Book Cover
Mastering AWS Development [Video]
$ 124.99
$ 50.00
Hands-On Web Development with Bootstrap and Vue [Video] Book Cover
Hands-On Web Development with Bootstrap and Vue [Video]
$ 124.99
$ 50.00
C++ Game Development By Example Book Cover
C++ Game Development By Example
$ 27.99
$ 11.20
Hands-On Full-Stack Web Development with GraphQL and React [Video] Book Cover
Hands-On Full-Stack Web Development with GraphQL and React [Video]
$ 124.99
$ 50.00
Mastering Metasploit 5.0 [Video] Book Cover
Mastering Metasploit 5.0 [Video]
$ 124.99
$ 50.00