Skip to content

Instantly share code, notes, and snippets.

View fillippeyton's full-sized avatar

Fillip Peyton fillippeyton

View GitHub Profile
@fillippeyton
fillippeyton / mycomponent.test.js
Created May 19, 2020 18:22
RTL setup() with default and overridable props
import { render, screen } from "@testing-library/react";
import { MyComponent } from "./MyComponent";
const defaultProps = {
size: "large",
color: "salmon",
butiful: true,
};
const setup = (overrideProps) -> {