Created
July 25, 2019 17:07
-
-
Save lkopacz/c244d9c8163e08dc237d95c72d5e0479 to your computer and use it in GitHub Desktop.
testing library - debug!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { render, cleanup } from "@testing-library/react"; | |
import MyComponent from "../MyComponent"; | |
afterEach(cleanup); | |
it("expects it to test something", () => { | |
const { debug } = render(<MyComponent />); | |
debug(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment