Items related to Mastering React Test-Driven Development: Build simple...

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

 
Image Not Available

Synopsis

Learn test-driven and behavior-driven development techniques that will give you greater confidence when building React applications

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, 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

Book 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.

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

Who this book is 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.

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. Form Validation
  10. Filtering and Searching Data
  11. Test-Driving React Router
  12. Test-Driving Redux
  13. Test-Driving GraphQL
  14. Building a Logo Interpreter
  15. Adding Animation
  16. Working with WebSockets
  17. Writing Your First Cucumber Test
  18. Adding Features Guided by Cucumber Tests
  19. Understanding TDD in the Wider Testing Landscape

"synopsis" may belong to another edition of this title.

About the Author

Daniel Irvine is a UK-based software consultant. He helps businesses simplify their existing codebases and assists dev teams in improving the quality of their software using eXtreme programming (XP) practices. He has been coaching developers for many years and co-founded the Queer Code London meetup.

"About this title" may belong to another edition of this title.

  • PublisherPackt Publishing
  • Publication date2022
  • ISBN 10 1803247126
  • ISBN 13 9781803247120
  • BindingPaperback
  • LanguageEnglish
  • Edition number2
  • Number of pages564

Buy Used

Condition: Fair
Fairly worn, but readable and intact...
View this item

US$ 3.99 shipping within U.S.A.

Destination, rates & speeds

Search results for Mastering React Test-Driven Development: Build simple...

Stock Image

Daniel Irvine
Published by Packt Publishing, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
Used Softcover

Seller: Goodwill Books, Hillsboro, OR, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: Acceptable. Fairly worn, but readable and intact. If applicable: Dust jacket, disc or access code may not be included. Seller Inventory # 3IIUFD000CCW_ns

Contact seller

Buy Used

US$ 19.73
Convert currency
Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Daniel Irvine
Published by Packt Publishing, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
Used paperback

Seller: Goodwill Books, Hillsboro, OR, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

paperback. Condition: Good. Signs of wear and consistent use. Seller Inventory # 3IIT7G005WO6_ns

Contact seller

Buy Used

US$ 22.23
Convert currency
Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Daniel Irvine
Published by Packt Publishing, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
New Softcover

Seller: Lucky's Textbooks, Dallas, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # ABLING22Oct2817130017118

Contact seller

Buy New

US$ 42.28
Convert currency
Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Daniel Irvine
Published by Packt Publishing, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
New Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # 44753068-n

Contact seller

Buy New

US$ 43.64
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: 3 available

Add to basket

Seller Image

Irvine, Daniel
Published by Packt Publishing 9/30/2022, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
New Paperback or Softback

Seller: BargainBookStores, Grand Rapids, MI, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback or Softback. Condition: New. Mastering React Test-Driven Development - Second Edition: Build simple and maintainable web apps with React, Redux, and GraphQL 2.11. Book. Seller Inventory # BBS-9781803247120

Contact seller

Buy New

US$ 46.66
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 5 available

Add to basket

Stock Image

Daniel Irvine
Published by Packt Publishing, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
New Softcover

Seller: California Books, Miami, FL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: New. Seller Inventory # I-9781803247120

Contact seller

Buy New

US$ 47.00
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Daniel Irvine
Published by Packt Publishing, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
Used Softcover

Seller: GreatBookPrices, Columbia, MD, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: As New. Unread book in perfect condition. Seller Inventory # 44753068

Contact seller

Buy Used

US$ 45.80
Convert currency
Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds

Quantity: 3 available

Add to basket

Stock Image

Daniel Irvine
Published by Packt Publishing Limited, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
New PAP
Print on Demand

Seller: PBShop.store UK, Fairford, GLOS, United Kingdom

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

PAP. Condition: New. New Book. Delivered from our UK warehouse in 4 to 14 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Seller Inventory # L0-9781803247120

Contact seller

Buy New

US$ 49.75
Convert currency
Shipping: US$ 4.44
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Daniel Irvine
Published by Packt Publishing Limited, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
New PAP
Print on Demand

Seller: PBShop.store US, Wood Dale, IL, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

PAP. Condition: New. New Book. Shipped from UK. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Seller Inventory # L0-9781803247120

Contact seller

Buy New

US$ 55.95
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: Over 20 available

Add to basket

Stock Image

Irvine, Daniel
Published by Packt Publishing 2022-09, 2022
ISBN 10: 1803247126 ISBN 13: 9781803247120
New PF

Seller: Chiron Media, Wallingford, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

PF. Condition: New. Seller Inventory # 6666-IUK-9781803247120

Contact seller

Buy New

US$ 43.12
Convert currency
Shipping: US$ 20.91
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 10 available

Add to basket

There are 10 more copies of this book

View all search results for this book