Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"istanbul-reports": "^3.1.3",
"jest": "workspace:^",
"jest-changed-files": "workspace:^",
"jest-diff": "workspace:^",
"jest-junit": "^16.0.0",
"jest-mock": "workspace:^",
"jest-runner-tsd": "^5.0.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/expect/__typetests__/expect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
TesterContext,
expect,
} from 'expect';
import type {DiffOptions} from 'jest-diff';
import type * as jestMatcherUtils from 'jest-matcher-utils';

type M = Matchers<void>;
Expand Down Expand Up @@ -69,6 +70,7 @@ expectType<void>(
expectType<number>(this.assertionCalls);
expectType<string | undefined>(this.currentTestName);
expectType<Array<Tester>>(this.customTesters);
expectType<DiffOptions | undefined>(this.diffOptions);
expectType<() => void>(this.dontThrow);
expectType<Error | undefined>(this.error);
expectType<EqualsFunction>(this.equals);
Expand All @@ -79,6 +81,9 @@ expectType<void>(
expectType<Error | undefined>(this.isExpectingAssertionsError);
expectType<boolean | undefined>(this.isNot);
expectType<number>(this.numPassingAsserts);
expectType<jestMatcherUtils.MatcherHintOptions | undefined>(
this.matcherHintOptions,
);
expectType<string | undefined>(this.promise);
expectType<Array<Error>>(this.suppressedErrors);
expectType<string | undefined>(this.testPath);
Expand Down
1 change: 1 addition & 0 deletions packages/expect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@tsd/typescript": "^5.0.4",
"chalk": "^4.0.0",
"immutable": "^4.0.0",
"jest-diff": "workspace:^",
"tsd-lite": "^0.7.0"
},
"engines": {
Expand Down
Loading