Skip to content

Commit 7bb773a

Browse files
committed
(#271) Move Jest timeout config out of test
1 parent 074d440 commit 7bb773a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/keyboard.class.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Key } from "./key.enum";
33
import { Keyboard } from "./keyboard.class";
44

55
jest.mock("./adapter/native.adapter.class");
6+
jest.setTimeout(10000);
67

78
beforeEach(() => {
89
jest.resetAllMocks();
@@ -38,7 +39,6 @@ describe("Keyboard", () => {
3839

3940
it("should pass multiple input strings down to the type call.", async () => {
4041
// GIVEN
41-
jest.setTimeout(10000);
4242
const adapterMock = new NativeAdapter();
4343
const SUT = new Keyboard(adapterMock);
4444
const payload = ["Test input!", "Array test2"];

0 commit comments

Comments
 (0)