From 90462de82ea8e9948dd5eec1d291488add22dec2 Mon Sep 17 00:00:00 2001 From: Keegan Witt Date: Mon, 24 Oct 2022 23:42:03 -0400 Subject: [PATCH] Fix toHaveBeenCalledOnceWith type definition (closes #518) (#523) --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 33b6e9f5..8d25033b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -174,7 +174,7 @@ declare namespace jest { /** * Use `.toHaveBeenCalledOnceWith` to check if a `Mock` was called exactly one time with the expected value. */ - toHaveBeenCalledOnceWith(...args: unknown[]): R; + toHaveBeenCalledOnceWith(arg: unknown): R; /** * Use `.toBeNumber` when checking if a value is a `Number`.