/* eslint-disable  no-undef */
import Adapter from 'enzyme-adapter-react-16';
import enzyme from 'enzyme';
import { axe, toHaveNoViolations } from 'jest-axe';
import faker from 'faker';
import React from 'react'; // eslint-disable-line no-unused-vars
import 'jest-styled-components';
import { __DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS } from 'styled-components';

require('jest-fetch-mock').enableMocks()

faker.seed(123);

enzyme.configure({ adapter: new Adapter() });

// set timeout to 10 seconds
global.jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
global.React = require('react');
global.shallow = enzyme.shallow;
global.mount   = enzyme.mount;
// Include the jest-axe .toHaveNoViolations()
global.expect.extend(toHaveNoViolations);
global.axe = axe;
if (!global.document.createRange) {
    global.document.createRange = jest.fn(() => ({
        setStart: () => {},
        setEnd: () => {},
        collapse: jest.fn(),
        commonAncestorContainer: {
            nodeName: 'BODY',
            ownerDocument: document,
        },
    }));
}
if (!global.window.customElements) {
    global.customElements = {
        get: () => false,
        define: () => false,
    };
}

Object.defineProperty(window, 'scrollTo', { value: jest.fn(), writable: true });

require('./matchers');
require('./mocks');

@@ -104,60 +104,8 @@
 e';%0A
-import %7B axe, toHaveNoViolations %7D from 'jest-axe';%0A
 impo
@@ -602,113 +602,8 @@
 nt;%0A
-// Include the jest-axe .toHaveNoViolations()%0Aglobal.expect.extend(toHaveNoViolations);%0Aglobal.axe = axe;
 %0Aif 

remove axe