Skip to content

Commit 722895b

Browse files
homburgalexkrolick
authored andcommitted
Update cypress configure documentation (#300)
`configure` is exported as of testing-library/cypress-testing-library#81 / version 4.2.0 Update documentation to describe `configure` usage with cypress.
1 parent 201c85d commit 722895b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/dom-testing-library/api-configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ configure({testIdAttribute: 'my-data-test-id'})`
4141
<!--Cypress-->
4242

4343
```
44-
The configuration object is not currently exposed to in Cypress Testing Library
44+
// setup-tests.js
45+
import { configure } from '@testing-library/cypress'
46+
47+
configure({testIdAttribute: 'my-data-test-id'})`
4548
```
4649

4750
<!--END_DOCUSAURUS_CODE_TABS-->

0 commit comments

Comments
 (0)