mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 10:35:22 +08:00
Update Jest types
Fix `MatcherUtils.utils.EXPECTED_COLOR` and `MatcherUtils.utils.RECEIVED_COLOR` to be functions.
This commit is contained in:
5
types/jest/index.d.ts
vendored
5
types/jest/index.d.ts
vendored
@@ -11,6 +11,7 @@
|
||||
// Jamie Mason <https://github.com/JamieMason>
|
||||
// Douglas Duteil <https://github.com/douglasduteil>
|
||||
// Ahn <https://github.com/AhnpGit>
|
||||
// Bradley Ayers <https://github.com/bradleyayers>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -230,8 +231,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;
|
||||
|
||||
Reference in New Issue
Block a user