Skip to content

Commit 9bfa9ce

Browse files
janhartmannloris
authored and
loris
committedMay 8, 2019
Updated Jest and Jest Types (#106)
* Updated Jest and Jest Types - adjusted breaking change of generic signature of MockInstance * Revert update of dependencies and adjusted types
1 parent 4f4a74e commit 9bfa9ce

File tree

3 files changed

+1026
-515
lines changed

3 files changed

+1026
-515
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"promise-polyfill": "^7.1.1"
3030
},
3131
"devDependencies": {
32-
"@types/jest": "^23.3.10",
32+
"@types/jest": "^23.3.14",
3333
"@types/node": "^10.12.10",
3434
"babel-core": "^6.26.3",
3535
"babel-jest": "^23.4.2",

‎types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface GlobalWithFetchMock extends Global {
1616
fetch: FetchMock;
1717
}
1818

19-
export interface FetchMock extends jest.MockInstance<any> {
19+
export interface FetchMock extends jest.MockInstance<any, any[]> {
2020
(input?: string | Request, init?: RequestInit): Promise<Response>;
2121

2222
mockResponse(body: BodyOrFunction, init?: MockParams): FetchMock;

0 commit comments

Comments
 (0)