mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
18 lines
659 B
JavaScript
18 lines
659 B
JavaScript
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
|
|
import { configure } from "enzyme";
|
|
import "blob-polyfill"; // https://github.com/jsdom/jsdom/issues/2555
|
|
|
|
// 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");
|