From 513adfc2ea02404ec2651690fe4e4ffecb9f5107 Mon Sep 17 00:00:00 2001 From: Gleb Radutsky Date: Mon, 1 Aug 2022 11:12:16 -0400 Subject: [PATCH] Update api-debugging.mdx Add `prettyDOM` import to example --- docs/dom-testing-library/api-debugging.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/dom-testing-library/api-debugging.mdx b/docs/dom-testing-library/api-debugging.mdx index 2817a074f..1b83f5afc 100644 --- a/docs/dom-testing-library/api-debugging.mdx +++ b/docs/dom-testing-library/api-debugging.mdx @@ -76,6 +76,8 @@ This function is usually used alongside `console.log` to temporarily print out DOM trees during tests for debugging purposes: ```javascript +import {prettyDOM } from '@testing-library/dom' + const div = document.createElement('div') div.innerHTML = '

Hello World

' console.log(prettyDOM(div))