diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index e0d73d5c9e..f83c386d09 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -470,7 +470,7 @@ declare namespace jest { * and it is set to a certain numeric value. */ toHaveLength(expected: number): R; - toHaveProperty(propertyPath: string, value?: any): R; + toHaveProperty(propertyPath: string | any[], value?: any): R; /** * Check that a string matches a regular expression. */