Skip to content

Commit

Permalink
Fix order of toHaveClass declarations
Browse files Browse the repository at this point in the history
Otherwise the vararg option doesn't work
  • Loading branch information
mrginglymus committed Jan 21, 2025
1 parent ce13a71 commit 7814d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/jest-dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ declare namespace matchers {
* @see
* [testing-library/jest-dom#tohaveclass](https://github.com/testing-library/jest-dom#tohaveclass)
*/
toHaveClass(...classNames: Array<string | RegExp>): R
toHaveClass(classNames: string, options?: {exact: boolean}): R
toHaveClass(...classNames: Array<string | RegExp>): R
/**
* @description
* This allows you to check whether the given form element has the specified displayed value (the one the
Expand Down

0 comments on commit 7814d88

Please sign in to comment.