16 lines
329 B
JavaScript
16 lines
329 B
JavaScript
import { configure } from 'enzyme';
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
|
|
configure({ adapter: new Adapter() });
|
|
|
|
if (global.document) {
|
|
document.createRange = () => ( {
|
|
setStart: () => {},
|
|
setEnd: () => {},
|
|
commonAncestorContainer: {
|
|
nodeName: 'BODY',
|
|
ownerDocument: document,
|
|
},
|
|
});
|
|
}
|