File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as React from "react";
22import { render } from "@testing-library/react" ;
33import type * as Polymorphic from "@reach/utils/polymorphic" ;
44import type { RenderResult } from "@testing-library/react" ;
5- import { Link as RouterLink } from "react-router-dom" ;
5+ import { Link as RouterLink , BrowserRouter } from "react-router-dom" ;
66
77interface ButtonProps {
88 isDisabled ?: boolean ;
@@ -82,7 +82,7 @@ export function Test() {
8282 const buttonAsLinkRef = React . useRef < React . ElementRef < typeof Link > > ( null ) ;
8383
8484 return (
85- < >
85+ < BrowserRouter >
8686 { /* Button accepts ref */ }
8787 < Button ref = { buttonRef } />
8888
@@ -206,7 +206,7 @@ export function Test() {
206206
207207 { /* Button as Anchor (Polymorphic.ForwardRefComponent) accepts requiredProp */ }
208208 < Button as = { Anchor } requiredProp />
209- </ >
209+ </ BrowserRouter >
210210 ) ;
211211}
212212
You can’t perform that action at this time.
0 commit comments