()
| 289 | it('always returns a user if inside an <AuthCheck> component', async () => { |
| 290 | // Since this is wrapped in an AuthCheck component and we never sign in, this should never get rendered |
| 291 | const UserDetails = () => { |
| 292 | const { data: user } = useUser(); |
| 293 | |
| 294 | expect(user).not.toBeNull(); |
| 295 | expect(user).toBeDefined(); |
| 296 | |
| 297 | return <h1>Hello</h1>; |
| 298 | }; |
| 299 | |
| 300 | render( |
| 301 | <> |