You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415
  1. import {configure} from 'enzyme';
  2. import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
  3. configure({adapter: new Adapter()});
  4. if (global.document) {
  5. document.createRange = () => ({
  6. setStart: () => {},
  7. setEnd: () => {},
  8. commonAncestorContainer: {
  9. nodeName: 'BODY',
  10. ownerDocument: document,
  11. },
  12. });
  13. }