A collection of helpful testing functions based on [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/).
npm install @mysetup/test-helpersA collection of helpful testing functions based on React Testing Library.
setupRender accepts a component and default props, and returns a render function that will merge additional props to the component.
``tsx
import { screen, setupRender } from "../../test-helpers";
const render = setupRender(
describe("setupRender", () => {
test("default props", () => {
render();
expect(screen.getByText("default prop")).toBeInTheDocument();
});
test("default props", () => {
render({ moreText: "more props" });
expect(screen.getByText("default props")).toBeInTheDocument();
expect(screen.getByText("more props")).toBeInTheDocument();
});
});
``