(props)
| 20 | // `console.error` (setup-jest treats any console.error as a failure). |
| 21 | // Wrap render in act() and flush microtasks so the ripple effect settles. |
| 22 | async function renderAlert(props) { |
| 23 | let ctrl; |
| 24 | await act(async () => { |
| 25 | ctrl = render(<ThemedAlertContent {...props} />); |
| 26 | }); |
| 27 | return ctrl; |
| 28 | } |
| 29 | |
| 30 | |
| 31 | describe('ModalProvider AlertContent', () => { |