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
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ This allows you to use all the useful
61
61
-[Installation](#installation)
62
62
-[With TypeScript](#with-typescript)
63
63
-[Usage](#usage)
64
+
-[Differences from DOM Testing Library](#differences-from-dom-testing-library)
64
65
-[Other Solutions](#other-solutions)
65
66
-[Contributors](#contributors)
66
67
-[LICENSE](#license)
@@ -95,7 +96,7 @@ and should be added as follows in `tsconfig.json`:
95
96
96
97
Add this line to your project's `cypress/support/commands.js`:
97
98
98
-
```
99
+
```javascript
99
100
import'@testing-library/cypress/add-commands'
100
101
```
101
102
@@ -105,14 +106,19 @@ and `queryAllBy` commands.
105
106
106
107
You can find [all Library definitions here](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/testing-library__cypress/index.d.ts).
107
108
109
+
To configure DOM Testing Library, use the following:
110
+
```javascript
111
+
cy.configureCypressTestingLibrary(config)
112
+
```
113
+
108
114
To show some simple examples (from
109
115
[cypress/integration/query.spec.js](cypress/integration/query.spec.js) or [cypress/integration/find.spec.js](cypress/integration/find.spec.js)):
0 commit comments