import "@testing-library/jest-dom/extend-expect"
import "whatwg-fetch"

// eslint-disable-next-line no-undef
if (global.document) {
  // create range mock
  document.createRange = () => ({
    setStart: () => {},
    setEnd: () => {},
    commonAncestorContainer: {
      nodeName: "BODY",
      ownerDocument: document,
    },
  })
}
