function getSelectionShim() {
  return {
    getRangeAt: function() {},
    removeAllRanges: function() {},
    setStart: function() {},
    setEnd: function() {},
    addRange: function() {},
  };
}
DOM Traversal is not implemented in JSDOM
The best we can do is shim the functions