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.

tutorial

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

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.

Part of tutorial

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

Part of tutorial

Presentation and Container Components
Follow the React pattern of container/presentation components by refactoring the code and tests.

Part of tutorial

Testing
Test-first development with Jest in the IDE.

Part of tutorial

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

Part of tutorial

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

tip

Run Tests from Editor
Learn how to run a single test right from the editor.

tip

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

tip

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

tip

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