Cypress Testing Library Simple and complete custom Cypress commands and utilities that encourage good testing practices. Read the docs | Edit the docs The problem You want to use DOM Testing Library methods in your Cypress tests. This solution This allows you to use all the useful DOM Testing Library methods in your tests. Table of Contents Installation With TypeScript Usage Differences from DOM Testing Library Other Solutions Contributors LICENSE Installation This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies: npm install --save-dev @testing-library/cypress With TypeScript Typings are defined in @types/testing-library__cypress at DefinitelyTyped and should be added as follows in tsconfig.json: { "compilerOptions": { "types": ["cypress", "@types/testing-library__cypress"] } } Usage Cypress Testing Library extends Cypress' cy command. Add this line to your…
I haven’t done this yet, but you can use react-testing-library (RTL) with Cypress.
🐅 Simple and complete custom Cypress commands and utilities that encourage good testing practices.
Cypress Testing Library
Simple and complete custom Cypress commands and utilities that encourage good testing practices.
Read the docs | Edit the docs
The problem
You want to use DOM Testing Library methods in your Cypress tests.
This solution
This allows you to use all the useful DOM Testing Library methods in your tests.
Table of Contents
Installation
This module is distributed via npm which is bundled with node and should be installed as one of your project's
devDependencies:With TypeScript
Typings are defined in
@types/testing-library__cypressat DefinitelyTyped and should be added as follows intsconfig.json:{ "compilerOptions": { "types": ["cypress", "@types/testing-library__cypress"] } }Usage
Cypress Testing Libraryextends Cypress'cycommand.Add this line to your…