Mastering React Test-Driven Development - Second Edition: Build simple and maintainable web apps with React, Redux, and GraphQL
暫譯: 精通 React 測試驅動開發(第二版):使用 React、Redux 和 GraphQL 構建簡單且可維護的網頁應用程式
Irvine, Daniel
- 出版商: Packt Publishing
- 出版日期: 2022-09-30
- 售價: $1,610
- 貴賓價: 9.5 折 $1,530
- 語言: 英文
- 頁數: 564
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1803247126
- ISBN-13: 9781803247120
-
相關分類:
Web API、React、TDD 測試導向開發
立即出貨 (庫存=1)
買這商品的人也買了...
-
$779$740 -
$520$442 -
$556Angular 權威教程
-
$1,848Usage-Driven Database Design: From Logical Data Modeling through Physical Schema Definition
-
$1,628Concurrency in Go: Tools and Techniques for Developers (Paperback)
-
$327算法設計與分析基礎, 3/e (Introduction to the Design and Analysis of Algorithms, 3/e)
-
$1,450$1,378 -
$454精通 Tableau 商業數據分析與可視化
-
$2,710$2,575 -
$857QEMU/KVM 源碼解析與應用
-
$3,040The Algorithm Design Manual, 3/e (Hardcover)
-
$653分佈式製造系統智能協調控制理論與模型
-
$830統計學習要素:機器學習中的數據挖掘、推斷與預測, 2/e (The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2/e)
-
$1,600$1,520 -
$520$411 -
$1,580$1,501 -
$1,450$1,378 -
$1,750$1,663 -
$630$599 -
$1,460$1,387 -
$2,030$1,929 -
$650$507 -
$780$663 -
$820$648 -
$790$616
相關主題
商品描述
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.
商品描述(中文翻譯)
學習測試驅動開發(TDD)和行為驅動開發(BDD)技術,讓您在構建 React 應用程式時更有信心
主要特點:
- 探索 TDD 流程、其運作方式,以及為何它能幫助您撰寫可維護的 React 應用程式
- 從零開始開發一個元件測試框架,幫助您理解良好單元測試的機制
- 透過使用單元測試和端到端驗收測試來驅動應用程式的設計,減少複雜性
書籍描述:
測試驅動開發(TDD)是一種編程工作流程,通過指定行為作為自動化測試來幫助您構建應用程式。TDD 工作流程使應用程式未來可持續發展,讓它們可以在不擔心破壞現有功能的情況下進行修改。TDD 的另一個好處是,它幫助軟體開發團隊通過測試規範更清晰地傳達他們的意圖。
本書教您在構建 React 應用程式時如何應用 TDD。您將使用專業 React 開發者所使用的相同 React 函式庫和工具來創建一個範例應用程式,例如 Jest、React Router、Redux、Relay(GraphQL)、Cucumber 和 Puppeteer。TDD 工作流程由各種測試技術和模式支持,即使您不遵循 TDD 流程,這些技術也很有用。本書通過引導您創建一個元件測試框架來涵蓋這些技術。您將學習自動化測試理論,這將幫助您使用當前標準的任何測試函式庫,例如 React Testing Library。本第二版已進行修訂,更加專注於簡潔的代碼示例,並已完全更新至 React 18。
在本 TDD 書籍結束時,您將能夠使用 React、Redux 和 GraphQL 開發穩健的網頁應用程式。
您將學到什麼:
- 使用 React 18 和 Jest 構建測試驅動的應用程式
- 理解撰寫優秀自動化測試的技術和模式
- 有效使用測試替身和模擬
- 測試驅動瀏覽器 API,包括 Fetch API 和 WebSocket API
- 與 React Router、Redux 和 Relay(GraphQL)等函式庫整合
- 使用 Cucumber.js 和 Puppeteer 為您的應用程式構建行為驅動開發(BDD)風格的測試
- 使用 redux-saga 和 expect-redux 構建和測試異步 Redux 代碼
本書適合誰:
本書適合希望改善測試實踐並提高應用程式質量和可維護性的前端開發者。要充分利用本書,您需要具備 JavaScript 編程語言的知識。
作者簡介
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.
作者簡介(中文翻譯)
丹尼爾·歐文(Daniel Irvine)是一位位於英國的軟體顧問。他幫助企業簡化現有的程式碼庫,並協助開發團隊使用極限編程(eXtreme programming, XP)實踐來提高軟體的質量。他已經指導開發人員多年,並共同創辦了倫敦酷兒程式碼(Queer Code London)聚會。
目錄大綱
- First Steps with Test-Driven Development
- Rendering Lists and Detail Views
- Refactoring the Test Suite
- Test-Driving Data Input
- Adding Complex Form Interactions
- Exploring Test Doubles
- Testing useEffect and Mocking Components
- Building an Application Component
- Form Validation
- Filtering and Searching Data
- Test-Driving React Router
- Test-Driving Redux
- Test-Driving GraphQL
- Building a Logo Interpreter
- Adding Animation
- Working with WebSockets
- Writing Your First Cucumber Test
- Adding Features Guided by Cucumber Tests
- Understanding TDD in the Wider Testing Landscape
目錄大綱(中文翻譯)
- First Steps with Test-Driven Development
- Rendering Lists and Detail Views
- Refactoring the Test Suite
- Test-Driving Data Input
- Adding Complex Form Interactions
- Exploring Test Doubles
- Testing useEffect and Mocking Components
- Building an Application Component
- Form Validation
- Filtering and Searching Data
- Test-Driving React Router
- Test-Driving Redux
- Test-Driving GraphQL
- Building a Logo Interpreter
- Adding Animation
- Working with WebSockets
- Writing Your First Cucumber Test
- Adding Features Guided by Cucumber Tests
- Understanding TDD in the Wider Testing Landscape