UNPKG

@jjordy/swr-devtools

Version:

Devtools for SWR

11 lines (10 loc) 410 B
import React from "react"; import { render } from "@testing-library/react"; const WrapperForTests = ({ children }) => { return React.createElement("div", null, children); }; const customRender = (ui, options = {}) => render(ui, { wrapper: WrapperForTests, ...options }); // re-export everything export * from "@testing-library/react"; // override render method export { customRender as render };