Skip to content

Commit 005dd0a

Browse files
committed
minor fixes: alphabetical reorder
1 parent 1d9c7d1 commit 005dd0a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/expect/__typetests__/expect.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
expect,
1818
} from 'expect';
1919
import type {DiffOptions} from 'jest-diff';
20-
import type {MatcherHintOptions} from 'jest-matcher-utils';
2120
import type * as jestMatcherUtils from 'jest-matcher-utils';
2221

2322
type 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);

packages/expect/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ export interface MatcherUtils {
6060
export 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

7777
export type MatcherContext = MatcherUtils & Readonly<MatcherState>;

packages/jest-diff/src/__tests__/diff.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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', () => {

0 commit comments

Comments
 (0)