Skip to content

Tutorial

Learn TWD step by step with practical examples and real-world scenarios.

Tutorial Path

Follow this recommended learning path to master TWD:

StepTopicDescription
0IntroductionWelcome to TWD and what you'll learn
1InstallationSet up TWD in your project
2First TestWrite and run your first test with selectors and assertions
3API MockingMock HTTP requests and responses
4CI IntegrationRun tests in continuous integration
5Code CoverageCollect and visualize code coverage
6Production BuildsRemove test code from production bundles

What You'll Learn

By the end of this tutorial, you'll be able to:

  • Set up TWD in any React project
  • Write comprehensive UI tests with assertions and user interactions
  • Mock API calls for isolated testing
  • Run tests automatically in CI/CD pipelines
  • Collect and report code coverage
  • Build production-ready applications without test code

Prerequisites

  • Basic knowledge of JavaScript/TypeScript
  • Familiarity with React
  • Understanding of web development concepts (DOM, HTTP requests)
  • Node.js and npm/yarn installed

Getting Help

If you get stuck during the tutorial:

Let's get started! Introduction

Released under the MIT License.