mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
fix test
This commit is contained in:
@@ -366,7 +366,7 @@ const spy3Mock = spy3
|
||||
.mockRejectedValueOnce("value");
|
||||
|
||||
let spy4: jest.SpyInstance;
|
||||
// $ExpectType SpyInstance<string, [void]>
|
||||
// $ExpectType SpyInstance<string, []>
|
||||
spy4 = jest.spyOn(spiedTarget, "returnsString");
|
||||
// compiles because spy4 is declared as jest.SpyInstance<any, any>
|
||||
spy4.mockImplementation(() => 1);
|
||||
|
||||
Reference in New Issue
Block a user