Test-Driven React: Find Problems Early, Fix Them Quickly, Code with Confidence

Burnham, Trevor

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2019-07-16
  • 定價: $1,800
  • 售價: 9.5$1,710
  • 貴賓價: 9.0$1,620
  • 語言: 英文
  • 頁數: 170
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1680506463
  • ISBN-13: 9781680506464
  • 相關分類: ReactTDD 測試導向開發
  • 立即出貨 (庫存 < 4)

買這商品的人也買了...

相關主題

商品描述

You work in a loop: write code, get feedback, iterate. The faster you get feedback, the faster you can learn and become a more effective developer. Test-Driven React helps you refine your React workflow to give you the feedback you need as quickly as possible. Write strong tests and run them continuously as you work, split complex code up into manageable pieces, and stay focused on what's important by automating away mundane, trivial tasks. Adopt these techniques and you'll be able to avoid productivity traps and start building React components at a stunning pace

React has revolutionized web development by abstracting away the details of DOM manipulation. That conceptual elegance has opened the door to a new generation of web testing: clear, expressive, and lightning-fast. That makes React a perfect fit for test-driven development (TDD), a methodology in which tests are a blueprint instead of an afterthought.

Each chapter will present new projects to challenge you and new tools to help you. Write fast, portable tests with Jest. Keep your code tidy with ESLint and Prettier. Perform every task you need from a single window with VS Code. See your test output directly in your code with Wallaby. Use the JavaScript features of the future with Babel. Make assertions about React component behavior with Enzyme. And style components in a testable way with styled-components. By understanding every piece of your project's stack, you'll feel more confident and able to focus on what matters: writing reliable and maintainable code.

Discover a more joyful React development experience. Let your tests lead the way

What You Need:

You'll need a working knowledge of JavaScript and a computer running macOS, Windows, or Linux.

商品描述(中文翻譯)

你在一個循環中工作:編寫代碼、獲得反饋、迭代。獲得反饋越快,你就能越快地學習並成為一個更有效的開發者。《測試驅動的 React》幫助你改進 React 工作流程,以便盡快獲得所需的反饋。編寫強大的測試並在工作過程中持續運行它們,將複雜的代碼拆分成可管理的部分,通過自動化乏味、琐碎的任務來保持專注於重要的事情。採用這些技術,你將能夠避免生產力陷阱,並以驚人的速度開始構建 React 組件。

React 通過抽象掉 DOM 操作的細節,徹底改變了 Web 開發。這種概念上的優雅為一種新一代的 Web 測試打開了大門:清晰、表達力強、速度快。這使得 React 成為測試驅動開發(TDD)的完美選擇,其中測試是藍圖而不是事後的想法。

每一章都將提供新的項目來挑戰你,並提供新的工具來幫助你。使用 Jest 快速編寫可移植的測試。使用 ESLint 和 Prettier 保持代碼整潔。使用 VS Code 在單個窗口中執行所需的每個任務。使用 Wallaby 直接在代碼中查看測試輸出。使用 Babel 使用未來的 JavaScript 功能。使用 Enzyme 對 React 組件行為進行斷言。並使用 styled-components 以可測試的方式設計組件的樣式。通過了解項目堆棧的每個部分,你將感到更自信,能夠專注於重要的事情:編寫可靠且易於維護的代碼。

發現一種更愉快的 React 開發體驗。讓你的測試引領前進。

你需要具備 JavaScript 的基本知識,並擁有運行 macOS、Windows 或 Linux 的計算機。

作者簡介

Trevor Burnham is an engineer at HubSpot in Cambridge, MA. His previous books include CoffeeScript and Async JavaScript, both published by PragProg. You can follow him on Twitter as @trevorburnham.

作者簡介(中文翻譯)

Trevor Burnham是麻省劍橋市HubSpot的一名工程師。他之前出版的書籍包括PragProg出版的CoffeeScript和Async JavaScript。你可以在Twitter上關注他,他的用戶名是@trevorburnham。