CEC-5618: add all diagnostic commands and resolve node 16 error (#494)
This commit is contained in:
@@ -18,6 +18,7 @@ import App from ".";
|
||||
import addSnapshotSerializer from "../../utils/snapshot";
|
||||
import { TEST_AUTH_OBJECT_FISKER, TEST_AUTH_OBJECT_MAGNA } from "../../utils/testing";
|
||||
import { setToken } from "../Contexts/UserContext";
|
||||
import structuredClone from '@ungap/structured-clone';
|
||||
|
||||
const LOADING_STATUS = "Loading...";
|
||||
|
||||
@@ -51,6 +52,10 @@ describe("App", () => {
|
||||
global.URL.createObjectURL = jest.fn();
|
||||
addSnapshotSerializer(expect);
|
||||
jest.setTimeout(10000);
|
||||
|
||||
if (!("structuredClone" in global)) {
|
||||
global.structuredClone = structuredClone;
|
||||
}
|
||||
}, 60000);
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user