import { shallow } from 'rebem-enzyme';
import Popup from '../components/popup';
const wrapper = shallow(<Popup />);
console.log(
wrapper.findBEM({ block: 'popup', elem: 'content' }).length
);
// 1import {
renderIntoDocument,
findRenderedDOMComponentWithBEM,
isDOMComponent
} from 'rebem-test-utils';
import Popup from '../components/popup';
const tree = renderIntoDocument(<Popup />);
const overlay = findRenderedDOMComponentWithBEM(tree, { block: 'popup', elem: 'overlay' });
console.log(
isDOMComponent(overlay)
);
// true