import './index.css';
import { mockComponent } from '@hh.ru/magritte-ui-mock-component';

const IconDynamic = mockComponent('IconDynamic', undefined, {
    withChildren: true,
});
const mockIconVariants = (path) => {
    const iconsModule = jest.requireActual(path);
    const iconsMockModule = {};
    Object.keys(iconsModule).forEach((key) => {
        iconsMockModule[key] = mockComponent(key, undefined, {
            withChildren: false,
        });
        iconsMockModule[key].isIcon = true;
    });
    jest.mock(path, () => {
        return {
            __esModule: true,
            ...iconsMockModule,
        };
    });
};

export { IconDynamic, mockIconVariants };
//# sourceMappingURL=mockIcon.js.map
