Intro
Qwik Testing Library on GitHub
- npm
- Yarn
npm run qwik add testing-library
yarn 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:
- A test runner or framework.
- Specific to a testing framework.