()
| 227 | } |
| 228 | |
| 229 | export const waitForLoaderToBeRemoved = async (): Promise<void> => { |
| 230 | return waitFor( |
| 231 | () => { |
| 232 | expect(screen.queryByTestId("loader")).not.toBeInTheDocument(); |
| 233 | }, |
| 234 | { |
| 235 | timeout: 5_000, |
| 236 | }, |
| 237 | ); |
| 238 | }; |
| 239 | |
| 240 | export const renderComponent = (component: React.ReactNode) => { |
| 241 | return testingLibraryRender(component, { |
no outgoing calls