CEC-5618: add all diagnostic commands and resolve node 16 error (#494)

This commit is contained in:
Tristan Timblin
2024-01-12 14:22:04 -08:00
committed by GitHub
parent 867d246ca6
commit 5d9b6f0537
7 changed files with 114 additions and 94 deletions

View File

@@ -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(() => {