Simplify Testing with React Testing Library

Simplify Testing with React Testing Library
Author :
Publisher : Packt Publishing Ltd
Total Pages : 246
Release :
ISBN-10 : 9781800565098
ISBN-13 : 1800565097
Rating : 4/5 (98 Downloads)

Book Synopsis Simplify Testing with React Testing Library by : Scottie Crump

Download or read book Simplify Testing with React Testing Library written by Scottie Crump and published by Packt Publishing Ltd. This book was released on 2021-05-14 with total page 246 pages. Available in PDF, EPUB and Kindle. Book excerpt: A fast-paced, practical guide to helping you leverage React Testing Library to test the DOM output of components Key FeaturesGet to grips with React Testing Library and create tests that don't break with changes in implementationLearn how to put RTL into practice by implementing it in real-world scenariosTest apps to be more accessible and ensure your tests will work with actual DOM nodesBook Description React Testing Library (RTL) is a lightweight and easy-to-use tool for testing the document object model (DOM) output of components. This book will show you how to use this modern, user-friendly tool to test React components, reducing the risk that your application will not work as expected in production. The book demonstrates code snippets that will allow you to implement RTL easily, helping you to understand the guiding principles of the DOM Testing Library to write tests from the perspective of the user. You'll explore the advantages of testing components from the perspective of individuals who will actually use your components, and use test-driven development (TDD) to drive the process of writing tests. As you advance, you'll discover how to add RTL to React projects, test components using the Context API, and also learn how to write user interface (UI) end-to-end tests using the popular Cypress library. Throughout this book, you'll work with practical examples and useful explanations to be able to confidently create tests that don't break when changes are made. By the end of this React book, you will have learned all you need to be able to test React components confidently. What you will learnExplore React Testing Library and its use casesGet to grips with the RTL ecosystemApply jest-dom to enhance your tests using RTLGain the confidence you need to create tests that don't break with changes using RTLIntegrate Cucumber and Cypress into your test suiteUse TDD to drive the process of writing testsApply your existing React knowledge for using RTLWho this book is for This book is for software engineers, quality engineers and React developers who want to learn about modern practices used for testing React components using the latest testing tool, RTL. Basic knowledge of React development is required to get the most out of this book.


Simplify Testing with React Testing Library Related Books

Simplify Testing with React Testing Library
Language: en
Pages: 246
Authors: Scottie Crump
Categories: Computers
Type: BOOK - Published: 2021-05-14 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

A fast-paced, practical guide to helping you leverage React Testing Library to test the DOM output of components Key FeaturesGet to grips with React Testing Lib
Full Stack Development with Spring Boot 3 and React
Language: en
Pages: 455
Authors: Juha Hinkula
Categories: Computers
Type: BOOK - Published: 2023-10-31 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Get up and running with the Spring Boot and React stack – build an app from start to finish, test the frontend and backend, and deploy. Now with TypeScript co
Real-World Next.js
Language: en
Pages: 367
Authors: Michele Riva
Categories: Computers
Type: BOOK - Published: 2022-02-28 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Learn how to use Next.js for building web apps without compromising performance, user experience, and developer happiness Key FeaturesDevelop scalable web appli
Designing React Hooks the Right Way
Language: en
Pages: 278
Authors: Fang Jin
Categories: Computers
Type: BOOK - Published: 2022-01-11 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Get to grips with React Hooks and design your own custom Hook to manage application states for making better decisions in site architecture Key FeaturesGet to g
Micro State Management with React Hooks
Language: en
Pages: 254
Authors: Daishi Kato
Categories: Computers
Type: BOOK - Published: 2022-02-25 - Publisher: Packt Publishing Ltd

DOWNLOAD EBOOK

Explore global state management and select the best library for your application Key Features Understand the essential concepts and features of micro state mana