Skip to content

Instantly share code, notes, and snippets.

@lkopacz
Created July 25, 2019 17:07
Show Gist options
  • Save lkopacz/c244d9c8163e08dc237d95c72d5e0479 to your computer and use it in GitHub Desktop.
Save lkopacz/c244d9c8163e08dc237d95c72d5e0479 to your computer and use it in GitHub Desktop.
testing library - debug!
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