Merge pull request #24426 from bradleyayers/patch-4

Update Jest types to fix MatcherUtils
This commit is contained in:
Mine Starks
2018-03-22 11:38:02 -07:00
committed by GitHub
+3 -2
View File
@@ -12,6 +12,7 @@
// Douglas Duteil <https://github.com/douglasduteil>
// Ahn <https://github.com/AhnpGit>
// Josh Goldberg <https://github.com/joshuakgoldberg>
// Bradley Ayers <https://github.com/bradleyayers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -236,8 +237,8 @@ declare namespace jest {
interface MatcherUtils {
readonly isNot: boolean;
utils: {
readonly EXPECTED_COLOR: string;
readonly RECEIVED_COLOR: string;
readonly EXPECTED_COLOR: (text: string) => string;
readonly RECEIVED_COLOR: (text: string) => string;
ensureActualIsNumber(actual: any, matcherName?: string): void;
ensureExpectedIsNumber(actual: any, matcherName?: string): void;
ensureNoExpected(actual: any, matcherName?: string): void;