import { act, cleanup, fireEvent, RenderResult, screen, waitFor, within, renderHook } from '@testing-library/react'; import { default as userEvent, UserEvent } from '@testing-library/user-event'; import { ReactElement } from 'react'; import { describe, expect } from 'vitest'; /** * TODO: Documentar */ declare const customRender: (ui: ReactElement, options?: {}) => RenderResult & { user: ReturnType; }; /** * This function is a wrapper around the render function from @testing-library/react. * Render Material UI components with the TestAppWrapper context. * TestAppWrapper is a React functional component that provides a consistent testing environment * for components that rely on various context providers. * It wraps the children components with the following contexts: * ModuleSkeletonContext, HostThemeProviderMock, and AppearanceComponentProvider. * @param ui - The component to render. * @param options - Additional options to pass to the render function. * @returns The rendered component and the user event object. * @example * // Usage example * const { renderUI, user } = renderMaterialUI(); */ declare const renderMaterialUI: (ui: ReactElement, options?: {}) => RenderResult & { user: UserEvent; }; export { act, cleanup, describe, expect, fireEvent, customRender as render, renderHook, renderMaterialUI, screen, userEvent, waitFor, within, }; //# sourceMappingURL=utils.d.ts.map