Skip to content

Instantly share code, notes, and snippets.

@n8rzz
Created January 24, 2022 01:28
Show Gist options
  • Save n8rzz/37f475d4377f2a07b1326db9b99a6417 to your computer and use it in GitHub Desktop.
Save n8rzz/37f475d4377f2a07b1326db9b99a6417 to your computer and use it in GitHub Desktop.
card-step-one.test.tsx
import React from "react";
import { render } from "@testing-library/react";
import { Card } from "./Card";
describe("Card", () => {
test("does not throw", () => {
const { queryByText } = render(<Card />);
expect(() => queryByText("Card")).not.toThrow();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment