Skip to content

Commit

Permalink
Declare matchers for use with expect.not.MATCHER (jest-community#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Harkness committed Nov 13, 2021
1 parent 157215b commit ef9b4ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion types/index.d.ts
Expand Up @@ -418,7 +418,7 @@ declare namespace jest {
}

// noinspection JSUnusedGlobalSymbols
interface Expect {
interface AsymmetricMatchers {
/**
* Note: Currently unimplemented
* Passing assertion
Expand Down Expand Up @@ -826,4 +826,10 @@ declare namespace jest {
*/
toEqualIgnoringWhitespace(string: string): any;
}

// noinspection JSUnusedGlobalSymbols
interface Expect extends AsymmetricMatchers {}

// noinspection JSUnusedGlobalSymbols
interface InverseAsymmetricMatchers extends AsymmetricMatchers {}
}

0 comments on commit ef9b4ae

Please sign in to comment.