You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typings are defined under `cypress-testing-library/typings`, and should be added as follows in `tsconfig.json`:
70
+
Typings are defined under `cypress-testing-library/typings`, and should be added
71
+
as follows in `tsconfig.json`:
70
72
71
73
```json
72
74
{
@@ -86,9 +88,12 @@ Add this line to your project's `cypress/support/commands.js`:
86
88
import 'cypress-testing-library/add-commands';
87
89
```
88
90
89
-
You can now use all of `dom-testing-library`'s `getBy`, `getAllBy`, `queryBy` and `queryAllBy` commands. [See `dom-testing-library` repo for reference](https://github.com/kentcdodds/dom-testing-library#usage)
91
+
You can now use all of `dom-testing-library`'s `getBy`, `getAllBy`, `queryBy`
92
+
and `queryAllBy` commands.
93
+
[See `dom-testing-library` repo for reference](https://github.com/kentcdodds/dom-testing-library#usage)
90
94
91
-
To show some simple examples (from [cypress/integration/commands.spec.js](cypress/integration/commands.spec.js)):
`cypress-testing-library` supports both jQuery elements and DOM nodes. This is necessary because Cypress uses jQuery elements, while `dom-testing-library` expects DOM nodes. When you pass a jQuery element as `container`, it will get the first DOM node from the collection and use that as the `container` parameter for the `dom-testing-library` functions.
111
+
`cypress-testing-library` supports both jQuery elements and DOM nodes. This is
112
+
necessary because Cypress uses jQuery elements, while `dom-testing-library`
113
+
expects DOM nodes. When you pass a jQuery element as `container`, it will get
114
+
the first DOM node from the collection and use that as the `container` parameter
0 commit comments