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 (097 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
The Art of Unit Testing
Language: en
Pages: 459
Authors: Roy Osherove
Categories: Computers
Type: BOOK - Published: 2013-11-24 - Publisher: Simon and Schuster

DOWNLOAD EBOOK

Summary The Art of Unit Testing, Second Edition guides you step by step from writing your first simple tests to developing robust test sets that are maintainabl
React Quickly
Language: en
Pages: 794
Authors: Azat Mardan
Categories: Computers
Type: BOOK - Published: 2017-08-20 - Publisher: Simon and Schuster

DOWNLOAD EBOOK

Summary React Quickly is for anyone who wants to learn React.js fast. This hands-on book teaches you the concepts you need with lots of examples, tutorials, and
Test-Driven Development with React
Language: en
Pages:
Authors: Juntao Qiu
Categories: Computers
Type: BOOK - Published: 2021-09-27 - Publisher: Apress

DOWNLOAD EBOOK

Learn to use accelerated test-driven development (TDD) to build a React application from scratch. This book explains how your React components will be integrate
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