Mastering React Test-Driven Development
eBook - ePub

Mastering React Test-Driven Development

  1. 564 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering React Test-Driven Development

About this book

Learn test-driven and behavior-driven development techniques that will give you greater confidence when building React applicationsKey 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, 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 appsBook DescriptionTest-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.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-reduxWho this book is forThis 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.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Mastering React Test-Driven Development by Daniel Irvine,Justin Searls in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Mastering React Test-Driven Development
  2. Second Edition
  3. Preface
  4. Part 1 – Exploring the TDD Workflow
  5. 1
  6. 2
  7. 3
  8. 4
  9. 5
  10. 6
  11. 7
  12. 8
  13. Part 2 – Building Application Features
  14. 9
  15. 10
  16. 11
  17. 12
  18. 13
  19. Part 3 – Interactivity
  20. 14
  21. 15
  22. 16
  23. Part 4 – Behavior-Driven Development with Cucumber
  24. 17
  25. 18
  26. 19
  27. Index
  28. Other Books You May Enjoy