Testing React Applications


Course Number: RCT-132

Duration: 2 days (13 hours)

Format: Live, hands-on

React Testing Training Overview

This Testing React Applications training course teaches developers how to write tests using Jest and the React Testing Library. In addition, attendees learn current best practices for testing React applications.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

Objectives

  • Write JavaScript unit tests using Jest
  • Mock JavaScript Modules and Functions using Jest
  • Perform Debugging Tests
  • Test components using React Testing Library
  • Test components using Enzyme (shallow, snapshot)
  • Test Components making HTTP calls
  • Test Applications using Redux (if applicable)

Prerequisites

Students should have taken Accelebrate's Introduction to React course or have equivalent experience. Attendees must have experience with Modern JavaScript concepts, including arrow functions, modules, and destructuring.

Outline

Expand All | Collapse All

Introduction
Tools Overview
  • Jest
  • React Testing Library
  • Enzyme
Jest Syntax
Testing Vanilla JavaScript with Jest
Mocking
  • Mocking Modules
  • Mocking Functions
Debugging Tests
  • In Chrome
  • In Visual Studio Code
  • Running One Test
  • Excluding Tests
Component Tests with React Testing Library
  • Using screen.debug()
  • Queries
  • Understanding async await with React Testing Library
Component Tests with Enzyme
  • Shallow
  • Full
  • Snapshot
Testing Components making HTTP calls
  • Introduction to Mock Service Worker (msw)
  • Using msw
Testing Applications using Redux
  • Testing Actions
  • Testing Thunks
  • Testing Reducers
Conclusion

Training Materials:

All React Testing training attendees receive comprehensive courseware.

Software Requirements:

  • Google Chrome and/or Firefox with Firebug
  • Other modern browsers as desired
  • IDE/development environment of your choice
  • Other free software and lab files as specified, including Node.js


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan