mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
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");
|
||||
|
||||
@@ -22,6 +22,9 @@ import React from "react";
|
||||
import "@testing-library/jest-dom/extend-expect";
|
||||
import { render } from "@testing-library/react";
|
||||
import { RenderDelay } from "../render-delay";
|
||||
import { mockWindow } from "../../../../../__mocks__/windowMock";
|
||||
|
||||
mockWindow();
|
||||
|
||||
describe("<RenderDelay/>", () => {
|
||||
it("renders w/o errors", () => {
|
||||
|
||||
Reference in new issue
Block a user