diff --git a/packages/utils/__tests__/polymorphic.test.tsx b/packages/utils/__tests__/polymorphic.test.tsx index 6ac95de70..d9e5f8fa3 100644 --- a/packages/utils/__tests__/polymorphic.test.tsx +++ b/packages/utils/__tests__/polymorphic.test.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { render } from "@testing-library/react"; import type * as Polymorphic from "@reach/utils/polymorphic"; import type { RenderResult } from "@testing-library/react"; -import { Link as RouterLink } from "react-router-dom"; +import { Link as RouterLink, BrowserRouter } from "react-router-dom"; interface ButtonProps { isDisabled?: boolean; @@ -82,7 +82,7 @@ export function Test() { const buttonAsLinkRef = React.useRef>(null); return ( - <> + {/* Button accepts ref */}