Jest

Jest

JavaScript testing framework with a focus on simplicity

Jest is a JavaScript testing framework with a focus on simplicity. It works with projects using Babel, TypeScript, Node, React, Angular, and Vue.

React, TypeScript, and TDD

tutorial

React, TypeScript, and TDD
How to write React applications in TypeScript using TDD, highlighting features of the IDE
Presentation and Container Components

Part of tutorial

Presentation and Container Components
Follow the React pattern of container/presentation components by refactoring the code and tests.
Debugging During Testing With NodeJS

Part of tutorial

Debugging During Testing With NodeJS
Use the visual debugger in the IDE for smarter TDD.
Class Components With State

Part of tutorial

Class Components With State
Make a very simple class component with local counter state, then make a type definition for that state.
Project Setup

Part of tutorial

Project Setup
Create a React+TypeScript project with the create-react-app scaffolding tool.
Rich Events and Testing

Part of tutorial

Rich Events and Testing
Add event handling to a stateful class component by first writing tests during development.
Testing

Part of tutorial

Testing
Test-first development with Jest in the IDE.
Run Tests from Editor

tip

Run Tests from Editor
Learn how to run a single test right from the editor.
Review Errors from Test Runners

tip

Review Errors from Test Runners
In a test file, hover over an error to get more information about it.
Finding Tests in Large Test Files

tip

Finding Tests in Large Test Files
Use the Structure tool window for quick navigation around large test files.
Navigate to Test

tip

Navigate to Test
Use the Go to Symbol popup to go to a test.