A `withRouter` helper for using with `rtl-utils`.
npm install @homebound/rtl-react-router-utilsA withRouter helper for using with rtl-utils.
``tsx
import { withRouter } from "@homebound/rtl-react-router-utils";
const router = withRouter("/currentPage");
const { button } = await render(
click(button);
expect(router.history.location.pathname).toEqual("/somethingElse");
`
A withRoute helper for using with rtl-utils.
`tsx
import { withRoute, withRouter } from "@homebound/rtl-react-router-utils";
const router = withRouter("/currentPage");
const route = withRoute("/:path");
const { button } = await render(
click(button);
expect(router.history.location.pathname).toEqual("/somethingElse");
``