10% off all books and free delivery over £40
Buy from our bookstore and 25% of the cover price will be given to a school of your choice to buy more books. *15% of eBooks.

Test-Driven React

View All Editions

£36.99 £33.29

In Stock. Same day dispatch on orders before 3pm.

Add To Wishlist
Write A Review

About

Test-Driven React Synopsis

Turn your React project requirements into tests and get the feedback you need faster than ever before. Combine the power of testing, linting, and typechecking directly in your coding environment to iterate on React components quickly and fearlessly!

You work in a loop: write code, get feedback, adjust. The faster you get feedback, the faster your code improves and the more effective you become as a developer. And that feedback comes from testing.

The conceptual elegance of React 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 presents new projects to challenge you and new tools to help you:

  • Write fast, easy-to-understand tests with Vitest and React Testing Library.
  • Keep your code tidy with ESLint and Prettier.
  • Perform every task you need from a single window within VS Code.
  • See your test output directly in your code with Wallaby.
  • Style components in a test-friendly way with styled-components.
  • Stay focused on what's important by running your tests continuously in the background.
  • Generate beautiful documentation with Storybook, and update it on every commit with GitHub Actions.
  • The second edition of Test-Driven React has been extensively revised to reflect the latest tools and techniques for React development, including TypeScript. Each chapter presents new projects to challenge you and new tools to help you find and fix type errors without even running your code.

    What You Need:

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

    About This Edition

    ISBN: 9798888650653
    Publication date: 1st October 2024
    Author: Trevor Burnham
    Publisher: The Pragmatic Bookshelf an imprint of Pragmatic Bookshelf
    Format: Paperback
    Pagination: 174 pages
    Genres: Programming and scripting languages: general
    Software testing and verification