@@ -15,7 +15,7 @@ describe("withAuthenticationRequired", () => {
1515 authContext . signinRedirect = signinRedirectMock ;
1616 useAuthMock . mockReturnValue ( authContext ) ;
1717
18- const MyComponent = ( ) : JSX . Element => < > Private</ > ;
18+ const MyComponent = ( ) : React . JSX . Element => < > Private</ > ;
1919 const WrappedComponent = withAuthenticationRequired ( MyComponent ) ;
2020
2121 // act
@@ -40,7 +40,7 @@ describe("withAuthenticationRequired", () => {
4040 authContext . signinRedirect = signinRedirectMock ;
4141 useAuthMock . mockReturnValue ( authContext ) ;
4242
43- const MyComponent = ( ) : JSX . Element => < > Private</ > ;
43+ const MyComponent = ( ) : React . JSX . Element => < > Private</ > ;
4444 const WrappedComponent = withAuthenticationRequired ( MyComponent ) ;
4545
4646 // act
@@ -67,8 +67,8 @@ describe("withAuthenticationRequired", () => {
6767 authContext . signinRedirect = signinRedirectMock ;
6868 useAuthMock . mockReturnValue ( authContext ) ;
6969
70- const MyComponent = ( ) : JSX . Element => < > Private</ > ;
71- const OnRedirecting = ( ) : JSX . Element => < > Redirecting</ > ;
70+ const MyComponent = ( ) : React . JSX . Element => < > Private</ > ;
71+ const OnRedirecting = ( ) : React . JSX . Element => < > Redirecting</ > ;
7272 const WrappedComponent = withAuthenticationRequired ( MyComponent , {
7373 OnRedirecting,
7474 } ) ;
@@ -94,7 +94,7 @@ describe("withAuthenticationRequired", () => {
9494 authContext . signinRedirect = signinRedirectMock ;
9595 useAuthMock . mockReturnValue ( authContext ) ;
9696
97- const MyComponent = ( ) : JSX . Element => < > Private</ > ;
97+ const MyComponent = ( ) : React . JSX . Element => < > Private</ > ;
9898 const onBeforeSigninMock = jest . fn ( ) ;
9999 const WrappedComponent = withAuthenticationRequired ( MyComponent , {
100100 onBeforeSignin : onBeforeSigninMock ,
@@ -124,7 +124,7 @@ describe("withAuthenticationRequired", () => {
124124 authContext . signinRedirect = signinRedirectMock ;
125125 useAuthMock . mockReturnValue ( authContext ) ;
126126
127- const MyComponent = ( ) : JSX . Element => < > Private</ > ;
127+ const MyComponent = ( ) : React . JSX . Element => < > Private</ > ;
128128 const WrappedComponent = withAuthenticationRequired ( MyComponent , {
129129 signinRedirectArgs : {
130130 redirect_uri : "foo" ,
@@ -156,9 +156,9 @@ describe("withAuthenticationRequired", () => {
156156 authContext . signinRedirect = signinRedirectMock ;
157157 useAuthMock . mockReturnValue ( authContext ) ;
158158
159- const MyComponent = ( ) : JSX . Element => < > Private</ > ;
159+ const MyComponent = ( ) : React . JSX . Element => < > Private</ > ;
160160 const WrappedComponent = withAuthenticationRequired ( MyComponent ) ;
161- const App = ( { foo } : { foo : number } ) : JSX . Element => (
161+ const App = ( { foo } : { foo : number } ) : React . JSX . Element => (
162162 < div >
163163 { foo }
164164 < AuthProvider { ...settingsStub } >
0 commit comments