| 6 | import "../../../jest.setup" |
| 7 | |
| 8 | const Async = props => { |
| 9 | const { data, error, isPending } = useAsync(props) |
| 10 | if (isPending) return "loading" |
| 11 | if (error) return error |
| 12 | if (data) return data |
| 13 | return null |
| 14 | } |
| 15 | |
| 16 | afterEach(cleanup) |
| 17 |
nothing calls this directly
no test coverage detected