Get Free Shipping on orders over $79
Mastering React Test-Driven Development : Build simple and maintainable web apps with React, Redux, and GraphQL, 2nd Edition - Daniel Irvine

Mastering React Test-Driven Development

Build simple and maintainable web apps with React, Redux, and GraphQL, 2nd Edition

By: Daniel Irvine, Justin Searls

eText | 30 September 2022 | Edition Number 2

At a Glance

eText


$49.49

or 4 interest-free payments of $12.37 with

 or 

Instant online reading in your Booktopia eTextbook Library *

Why choose an eTextbook?

Instant Access *

Purchase and read your book immediately

Read Aloud

Listen and follow along as Bookshelf reads to you

Study Tools

Built-in study tools like highlights and more

* eTextbooks are not downloadable to your eReader or an app and can be accessed via web browsers only. You must be connected to the internet and have no technical issues with your device or browser that could prevent the eTextbook from operating.

Learn test-driven and behavior-driven development techniques that will help you build real-world React applications confidently in your software

Key Features

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

Book Description

Test-driven development (TDD) is a programming workflow that helps you build your app by specifying its behavior as automated tests. The workflow is designed for future-proofing apps so that they can be modified easily without fear of breaking existing functionality. This workflow also has other benefits such as helping dev teams communicate their intentions by way of test specifications.

This book teaches you how to apply the workflow when building React apps, using Jest. You'll explore the creation of a sample app, using standard React libraries that professional React developers are likely to encounter when building apps, such as React Router, Redux, and Relay (GraphQL). 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 understand the theory behind automated testing that will help you work with any of the test libraries that are in standard usage today, such as the 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.

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 fetch and WebSockets
  • Integrate with libraries such as React Router, Redux, and Relay (GraphQL)
  • 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

Who This Book Is For

This TDD React book is for JavaScript developers who are looking to improve and learn testing practices and increase the quality and maintainability of their applications.

Table of Contents

  1. First Steps with Test-Driven Development
  2. Rendering Lists and Detail Views
  3. Refactoring the Test Suite
  4. Test-driving Data Input
  5. Adding complex form interactions
  6. Exploring Test Doubles
  7. Testing useEffect and Mocking Components
  8. Building an Application Component
  9. Test-driving Redux
  10. Filtering and Searching Data
  11. Building a Logo Interpreter
  12. Adding Animation
  13. Working with WebSockets
  14. Writing Your First Acceptance Test
  15. Adding Features Guided by Acceptance Tests
  16. Understanding TDD in the Wider Testing Landscape
on
Desktop
Tablet
Mobile

More in Web Programming

Spring AI in Action - Craig Walls

eBOOK

Total Typescript - Matt Pocock

eBOOK

RRP $81.07

$64.99

20%
OFF