From 7bb773a0abeb4f5e8a451c2a1280785d438052f2 Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Sun, 5 Sep 2021 22:47:45 +0200 Subject: [PATCH] (#271) Move Jest timeout config out of test --- lib/keyboard.class.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/keyboard.class.spec.ts b/lib/keyboard.class.spec.ts index bd4e4e8..8362660 100644 --- a/lib/keyboard.class.spec.ts +++ b/lib/keyboard.class.spec.ts @@ -3,6 +3,7 @@ import { Key } from "./key.enum"; import { Keyboard } from "./keyboard.class"; jest.mock("./adapter/native.adapter.class"); +jest.setTimeout(10000); beforeEach(() => { jest.resetAllMocks(); @@ -38,7 +39,6 @@ describe("Keyboard", () => { it("should pass multiple input strings down to the type call.", async () => { // GIVEN - jest.setTimeout(10000); const adapterMock = new NativeAdapter(); const SUT = new Keyboard(adapterMock); const payload = ["Test input!", "Array test2"];