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

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