Skip to content

Commit a76dfd8

Browse files
authored
Update api-debugging.mdx (#1125)
1 parent 6b04fb9 commit a76dfd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/dom-testing-library/api-debugging.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ This function is usually used alongside `console.log` to temporarily print out
7676
DOM trees during tests for debugging purposes:
7777

7878
```javascript
79+
import {prettyDOM } from '@testing-library/dom'
80+
7981
const div = document.createElement('div')
8082
div.innerHTML = '<div><h1>Hello World</h1></div>'
8183
console.log(prettyDOM(div))

0 commit comments

Comments
 (0)