Skip to Content
Learning TypeScript 2.x - Second Edition
book

Learning TypeScript 2.x - Second Edition

by Remo H. Jansen
April 2018
Beginner content levelBeginner
536 pages
13h 21m
English
Packt Publishing
Content preview from Learning TypeScript 2.x - Second Edition

Testing React web components with Enzyme

At this point, we have tested the backend of our application using both unit tests and integration tests (with SuperTest). We have also tested our client in complete isolation, thanks to the usage of Sinon.JS. However, our application can still fail if something is wrong in the presentation layer (the graphic user interface). In this section, we are going to learn how we can use some libraries to help us to test each of the components of our graphic user interface.

Refer to Chapter 11, Frontend Development with React and TypeScript, to learn more about React.

The companion source code includes the following React component:

import * as React from "react"; import { MathClient } from "./math_client"; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering TypeScript - Fourth Edition

Mastering TypeScript - Fourth Edition

Nathan Rozentals
Learning TypeScript

Learning TypeScript

Josh Goldberg
TypeScript for Beginners

TypeScript for Beginners

Bharath Thippireddy

Publisher Resources

ISBN: 9781788391474Supplemental Content