Testing Library

Testing Library

  • Docs
  • Recipes
  • Help
  • Blog

›Preact Testing Library

Getting Started

  • Introduction
  • Guiding Principles
  • Using Fake Timers

Frameworks

    DOM Testing Library

    • Introduction
    • Install
    • Example
    • Setup
    • Queries
    • Firing Events
    • Async Utilities
    • Helpers
    • Configuration
    • FAQ
    • Cheatsheet

    React Testing Library

    • Introduction
    • Example
    • Setup
    • API
    • Migrate from Enzyme
    • FAQ
    • Cheatsheet

    Reason Testing Library

    • Introduction
    • Examples

    React Native Testing Library

    • Introduction
    • Example
    • Setup

    Vue Testing Library

    • Introduction
    • Examples
    • Setup
    • API
    • Cheatsheet
    • FAQ

    Marko Testing Library

    • Introduction
    • Setup
    • API

    Angular Testing Library

    • Introduction
    • Examples
    • API

    Preact Testing Library

    • Introduction
    • Example
    • API
    • Learn

    Svelte Testing Library

    • Introduction
    • Setup
    • Example
    • API
  • Cypress Testing Library
  • Puppeteer Testing Library
  • Testcafe Testing Library
  • Nightwatch Testing Library

Ecosystem

  • user-event
  • jest-dom
  • bs-jest-dom
  • jest-native
  • react-select-event
  • eslint-plugin-testing-library
  • eslint-plugin-jest-dom
  • riot-testing-library
  • jasmine-dom
Edit

Learn

Due to the similarities between React and Preact (including the testing libraries), you should be able to comfortably use any React based examples, docs, answers on stack overflow etc.

Take note of the differences between React and Preact.

If you're still hungry for more at this point than checkout:

  • The dom-testing-library:
    • Introduction
    • Queries
    • Firing Events
    • Async Utilities
    • Helpers
    • FAQ
  • The react-testing-library:
    • API
    • Example
    • Migrate from Enzyme
    • Sandbox
    • FAQ
  • This YouTube video by LevelUpTuts called What is React Testing Library?
  • Extending Jest with custom matchers to test the state of the DOM.
Last updated on 9/6/2020
← APIIntroduction →
Testing Library
Docs
Getting StartedExamplesAPIHelp
Community
BlogStack OverflowDiscord
More
StarGitHubEdit Docs on GitHubHosted by Netlify
Copyright © 2018-2020 Kent C. Dodds and contributors