Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#33117 from antoinebrault/jest-fix-…
Browse files Browse the repository at this point in the history
…test

[jest] fix test
  • Loading branch information
Jessidhia authored Feb 19, 2019
2 parents 72a3259 + 50cd191 commit 90961b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/jest/jest-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ interface TestApi {
test(x: number): string;
}
// $ExpectType Mock<string, [number]>
const mock12 = jest.fn<ReturnType<TestApi["test"]>, ArgsType<TestApi["test"]>>();
const mock12 = jest.fn<ReturnType<TestApi["test"]>, jest.ArgsType<TestApi["test"]>>();

// $ExpectType number
mock1('test');
Expand Down

0 comments on commit 90961b6

Please sign in to comment.