Skip to content

Instantly share code, notes, and snippets.

@ivanbtrujillo
Created June 6, 2019 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanbtrujillo/62da15743d3be3b3b403290097959f99 to your computer and use it in GitHub Desktop.
Save ivanbtrujillo/62da15743d3be3b3b403290097959f99 to your computer and use it in GitHub Desktop.
react-testing-library-article-1
import React from "react";
import { render, cleanup, fireEvent } from "@testing-library/react";
import Sum from "./Sum";
describe("Sum", () => {
afterEach(cleanup)
it("should render", () => {
const SumComponent = render(<Sum />);
expect(SumComponent).toBeTruthy();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment