Skip to content

Commit 130e9c3

Browse files
author
Kent C. Dodds
committed
docs: add testing javascript link
1 parent d2598dc commit 130e9c3

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
[![Star on GitHub][github-star-badge]][github-star]
2525
[![Tweet][twitter-badge]][twitter]
2626

27+
<div align="center">
28+
<a href="https://testingjavascript.com">
29+
<img width="500" alt="TestingJavaScript.com Learn the smart, efficient way to test any JavaScript application." src="https://raw.githubusercontent.com/kentcdodds/react-testing-library/master/other/testingjavascript.jpg" />
30+
</a>
31+
</div>
32+
2733
## The problem
2834

2935
You want to use [`dom-testing-library`][dom-testing-library] methods in your [Cypress][cypress] tests.
@@ -35,14 +41,13 @@ This allows you to use all the useful [`dom-testing-library`][dom-testing-librar
3541
## Table of Contents
3642

3743
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
38-
3944
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4045

41-
* [Installation](#installation)
42-
* [Usage](#usage)
43-
* [Other Solutions](#other-solutions)
44-
* [Contributors](#contributors)
45-
* [LICENSE](#license)
46+
- [Installation](#installation)
47+
- [Usage](#usage)
48+
- [Other Solutions](#other-solutions)
49+
- [Contributors](#contributors)
50+
- [LICENSE](#license)
4651

4752
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
4853

@@ -73,12 +78,12 @@ To show some simple examples (from [cypress/integration/commands.spec.js](cypres
7378
cy.getAllByText('Jackie Chan').click()
7479
cy.queryByText('Button Text').should('exist')
7580
cy.queryByText('Non-existing Button Text').should('not.exist')
76-
cy.queryByLabelText('Label text', { timeout: 7000 }).should('exist')
81+
cy.queryByLabelText('Label text', {timeout: 7000}).should('exist')
7782
cy.get('form').within(() => {
7883
cy.getByText('Button Text').should('exist')
7984
})
80-
cy.get('form').then((subject) => {
81-
cy.getByText('Button Text', { container: subject }).should('exist')
85+
cy.get('form').then(subject => {
86+
cy.getByText('Button Text', {container: subject}).should('exist')
8287
})
8388
```
8489

@@ -97,6 +102,7 @@ Thanks goes to these people ([emoji key][emojis]):
97102
<!-- prettier-ignore -->
98103
| [<img src="https://avatars.githubusercontent.com/u/1500684?v=3" width="100px;"/><br /><sub><b>Kent C. Dodds</b></sub>](https://kentcdodds.com)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=kentcdodds "Code") [📖](https://github.com/kentcdodds/cypress-testing-library/commits?author=kentcdodds "Documentation") [🚇](#infra-kentcdodds "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=kentcdodds "Tests") | [<img src="https://avatars2.githubusercontent.com/u/498274?v=4" width="100px;"/><br /><sub><b>Ivan Babak</b></sub>](https://sompylasar.github.io)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=sompylasar "Code") [🤔](#ideas-sompylasar "Ideas, Planning, & Feedback") | [<img src="https://avatars1.githubusercontent.com/u/4002543?v=4" width="100px;"/><br /><sub><b>Łukasz Gandecki</b></sub>](http://team.thebrain.pro)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=lgandecki "Code") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=lgandecki "Tests") | [<img src="https://avatars1.githubusercontent.com/u/25429764?v=4" width="100px;"/><br /><sub><b>Peter Kamps</b></sub>](https://github.com/npeterkamps)<br />[💻](https://github.com/kentcdodds/cypress-testing-library/commits?author=npeterkamps "Code") [📖](https://github.com/kentcdodds/cypress-testing-library/commits?author=npeterkamps "Documentation") [🤔](#ideas-npeterkamps "Ideas, Planning, & Feedback") [⚠️](https://github.com/kentcdodds/cypress-testing-library/commits?author=npeterkamps "Tests") |
99104
| :---: | :---: | :---: | :---: |
105+
100106
<!-- ALL-CONTRIBUTORS-LIST:END -->
101107

102108
This project follows the [all-contributors][all-contributors] specification.

other/testingjavascript.jpg

262 KB
Loading

0 commit comments

Comments
 (0)