Cleanup integration and unit tests (#3531)

- Make mockWindow a function and call it when needed

- Change timeouts so that better error messages happen more often in
  integration tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-08-03 08:51:52 -04:00
1 parent b546f1df72
commit 4fc340d0c6
7 files changed
+51 -57

No files matched your search

@@ -30,6 +30,9 @@ import { ConfirmDialog } from "../../confirm-dialog";
import { ExtensionInstallationStateStore } from "../extension-install.store";
import { Extensions } from "../extensions";
import mockFs from "mock-fs";
import { mockWindow } from "../../../../../__mocks__/windowMock";
mockWindow();
jest.setTimeout(30000);
jest.mock("fs-extra");