Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.07 KB

File metadata and controls

41 lines (27 loc) · 1.07 KB
id title sidebar_label
intro
Intro
Introduction

Qwik Testing Library on GitHub

npm run qwik add testing-library

This library is built on top of dom-testing-library which is where most of the logic behind the queries is.

The Problem

You want to write maintainable tests for your Qwik components.

This Solution

The Qwik Testing Library is a lightweight library for testing Qwik components. It provides functions on top of qwik and @testing-library/dom so you can mount Qwik components and query their rendered output in the DOM. Its primary guiding principle is:

The more your tests resemble the way your software is used, the more confidence they can give you.

What this library is not:

  1. A test runner or framework.
  2. Specific to a testing framework.