File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import {
1717 expect ,
1818} from 'expect' ;
1919import type { DiffOptions } from 'jest-diff' ;
20- import type { MatcherHintOptions } from 'jest-matcher-utils' ;
2120import type * as jestMatcherUtils from 'jest-matcher-utils' ;
2221
2322type M = Matchers < void > ;
@@ -80,7 +79,7 @@ expectType<void>(
8079 expectType < boolean > ( this . isExpectingAssertions ) ;
8180 expectType < Error | undefined > ( this . isExpectingAssertionsError ) ;
8281 expectType < boolean | undefined > ( this . isNot ) ;
83- expectType < MatcherHintOptions | undefined > ( this . matcherHintOptions ) ;
82+ expectType < jestMatcherUtils . MatcherHintOptions | undefined > ( this . matcherHintOptions ) ;
8483 expectType < string | undefined > ( this . promise ) ;
8584 expectType < Array < Error > > ( this . suppressedErrors ) ;
8685 expectType < string | undefined > ( this . testPath ) ;
Original file line number Diff line number Diff line change @@ -60,18 +60,18 @@ export interface MatcherUtils {
6060export interface MatcherState {
6161 assertionCalls : number ;
6262 currentTestName ?: string ;
63+ diffOptions ?: DiffOptions ;
6364 error ?: Error ;
6465 expand ?: boolean ;
6566 expectedAssertionsNumber : number | null ;
6667 expectedAssertionsNumberError ?: Error ;
6768 isExpectingAssertions : boolean ;
6869 isExpectingAssertionsError ?: Error ;
6970 isNot ?: boolean ;
71+ matcherHintOptions ?: MatcherHintOptions ;
7072 promise ?: string ;
7173 suppressedErrors : Array < Error > ;
7274 testPath ?: string ;
73- matcherHintOptions ?: MatcherHintOptions ;
74- diffOptions ?: DiffOptions ;
7575}
7676
7777export type MatcherContext = MatcherUtils & Readonly < MatcherState > ;
Original file line number Diff line number Diff line change @@ -989,8 +989,8 @@ describe('options', () => {
989989
990990 describe ( 'common' , ( ) => {
991991 const options = {
992- noDim : true ,
993992 commonIndicator : '=' ,
993+ noDim : true ,
994994 } ;
995995
996996 test ( 'diff' , ( ) => {
You can’t perform that action at this time.
0 commit comments