fix test failure because crypto implementation is not there
// enzyme
import { configure } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
-// Used by @zip.js/zip.js, but not implemented in jsdom via jest, so manually add it here
-window.crypto = require("@trust/webcrypto");
+
+// Used by @zip.js/zip.js, but not implemented in jsdom via jest, so manually mock it here
+window.crypto = jest.fn();
// mock uniqid to have consistent names
// https://stackoverflow.com/a/44538270/396730
