MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / renderAlert

Function renderAlert

web/regression/javascript/ModalProvider.spec.js:22–28  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

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.
22async function renderAlert(props) {
23 let ctrl;
24 await act(async () => {
25 ctrl = render(<ThemedAlertContent {...props} />);
26 });
27 return ctrl;
28}
29
30
31describe('ModalProvider AlertContent', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected