Skip to content

Commit f6b7376

Browse files
author
Kent C. Dodds
authored
add note about debug params
1 parent 1b8c4ef commit f6b7376

File tree

1 file changed

+4
-0
lines changed
  • docs/react-testing-library

1 file changed

+4
-0
lines changed

docs/react-testing-library/api.md

+4
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ debug()
173173
// <h1>Hello World</h1>
174174
// </div>
175175
// you can also pass an element: debug(getByTestId('messages'))
176+
// and you can pass all the same arguemnts to debug as you can
177+
// to prettyDOM:
178+
// const maxLengthToPrint = 10000
179+
// debug(getByTestId('messages'), maxLengthToPrint, {highlight: false})
176180
```
177181

178182
This is a simple wrapper around `prettyDOM` which is also exposed and comes from

0 commit comments

Comments
 (0)