element-web/test/setupTests.js

18 lines
659 B
JavaScript
Raw Normal View History

import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import { configure } from "enzyme";
import "blob-polyfill"; // https://github.com/jsdom/jsdom/issues/2555
2019-12-17 14:47:01 +03:00
// Enable the jest & enzyme mocks
require('jest-fetch-mock').enableMocks();
configure({ adapter: new Adapter() });
// Very carefully enable the mocks for everything else in
// a specific order. We use this order to ensure we properly
// establish an application state that actually works.
//
// These are also require() calls to make sure they get called
// synchronously.
require("./setup/setupManualMocks"); // must be first
require("./setup/setupLanguage");
require("./setup/setupConfig");