Skip to content

Commit 7814d88

Browse files
committed
Fix order of toHaveClass declarations
Otherwise the vararg option doesn't work
1 parent ce13a71 commit 7814d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/jest-dom.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ declare namespace matchers {
260260
* @see
261261
* [testing-library/jest-dom#tohaveclass](https://github.com/testing-library/jest-dom#tohaveclass)
262262
*/
263-
toHaveClass(...classNames: Array<string | RegExp>): R
264263
toHaveClass(classNames: string, options?: {exact: boolean}): R
264+
toHaveClass(...classNames: Array<string | RegExp>): R
265265
/**
266266
* @description
267267
* This allows you to check whether the given form element has the specified displayed value (the one the

0 commit comments

Comments
 (0)