Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testing-library/jest-dom
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.4.6
Choose a base ref
...
head repository: testing-library/jest-dom
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5cc6298847e08872b79f827921c64c9ba261cc54
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 22, 2024

  1. fix: Type definition of toHaveClass (#611)

    tonyhallett authored Jul 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    5cc6298 View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 types/matchers-standalone.d.ts
6 changes: 3 additions & 3 deletions types/matchers-standalone.d.ts
Original file line number Diff line number Diff line change
@@ -6,12 +6,12 @@ interface MatcherReturnType {
}

interface OverloadedMatchers {
toHaveClass: (expected: any, ...rest: string[]) => MatcherReturnType
toHaveClass: (
toHaveClass(expected: any, ...rest: string[]) : MatcherReturnType
toHaveClass(
expected: any,
className: string,
options?: {exact: boolean},
) => MatcherReturnType
) : MatcherReturnType
}

declare namespace matchersStandalone {