mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-08 01:05:15 +00:00
23223cfb23
Co-authored-by: Steve Faulkner <southpolesteve@gmail.com>
19 lines
711 B
TypeScript
19 lines
711 B
TypeScript
import { configure } from "enzyme";
|
|
import Adapter from "enzyme-adapter-react-16";
|
|
import "jest-canvas-mock";
|
|
import { initializeIcons } from "@fluentui/react";
|
|
import { TextDecoder, TextEncoder } from "util";
|
|
configure({ adapter: new Adapter() });
|
|
initializeIcons();
|
|
|
|
if (typeof window.URL.createObjectURL === "undefined") {
|
|
Object.defineProperty(window.URL, "createObjectURL", { value: () => {} });
|
|
}
|
|
|
|
// TODO Remove when jquery and documentdbclient SDK are removed
|
|
(<any>window).$ = (<any>window).jQuery = require("jquery");
|
|
(<any>global).$ = (<any>global).$.jQuery = require("jquery");
|
|
require("jquery-ui-dist/jquery-ui");
|
|
(<any>global).TextEncoder = TextEncoder;
|
|
(<any>global).TextDecoder = TextDecoder;
|