TypeError: document.createRange is not a functionTypeError: document.createRange(...).createContextualFragment is not a functionglobal.document.createRange = props => ({
setStart: () => {},
setEnd: () => {},
commonAncestorContainer: {
nodeName: 'BODY',
ownerDocument: document,
},
createContextualFragment: str => JSDOM.fragment(str),
});