shallowly
Version:
Shallowly: Modern shallow renderer for React 18+. Enzyme-compatible API, 2x faster, with TypeScript support.
9 lines (8 loc) • 448 B
TypeScript
import { ShallowWrapper } from './ShallowWrapper';
/**
* Создает shallow-обертку для React-компонента.
* @param component - React-компонент или элемент для рендеринга.
* @returns {ShallowWrapper} Обертка для поверхностного рендеринга.
*/
declare function shallow(component: React.ReactElement | React.ReactNode[]): ShallowWrapper;
export { shallow };