diff --git a/types/testing-library__jest-dom/index.d.ts b/types/testing-library__jest-dom/index.d.ts index 6a394876916286..4a041f1908c1f4 100644 --- a/types/testing-library__jest-dom/index.d.ts +++ b/types/testing-library__jest-dom/index.d.ts @@ -292,7 +292,7 @@ declare namespace jest { * @see * [testing-library/jest-dom#tohavedisplayvalue](https:github.com/testing-library/jest-dom#tohavedisplayvalue) */ - toHaveDisplayValue(value: string | string[]): R; + toHaveDisplayValue(value: string | RegExp | (string|RegExp)[]): R; /** * @description * Assert whether an element has focus or not.