// For some reason, this property does not get set above.
global.Image = global.window.Image;

global.Range = function Range() {};

const createContextualFragment = html => {
  const div = document.createElement("div");
  div.innerHTML = html;
  return div.children[0]; // so hokey it's not even funny
};

Range.prototype.createContextualFragment = html =>
  createContextualFragment(html);

// HACK: Polyfil that allows codemirror to render in a JSDOM env.
global.window.document.createRange = function createRange() {
  return {
    setEnd: () => {},
    setStart: () => {},
    getBoundingClientRect: () => ({ right: 0 }),
    getClientRects: () => [],
    createContextualFragment
  };
};

@@ -125,16 +125,140 @@
 () %7B%7D;%0A%0A
+import %7B configure %7D from %22enzyme%22;%0Aimport Adapter from %22enzyme-adapter-react-16%22;%0A%0Aconfigure(%7B adapter: new Adapter() %7D);%0A%0A
 const cr

configure enzyme for all using mockument