mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Initial Move from Azure DevOps to GitHub
This commit is contained in:
13
src/setupTests.ts
Normal file
13
src/setupTests.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import Adapter from "enzyme-adapter-react-16";
|
||||
import { configure } from "enzyme";
|
||||
import "jest-canvas-mock";
|
||||
configure({ adapter: new Adapter() });
|
||||
|
||||
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");
|
||||
Reference in New Issue
Block a user