@jest/globals
Advanced tools
Comparing version 29.0.2 to 29.0.3
@@ -10,3 +10,3 @@ /** | ||
import type { Global } from '@jest/types'; | ||
import type { ClassLike, FunctionLike, Mocked as JestMocked, MockedClass as JestMockedClass, MockedFunction as JestMockedFunction, MockedObject as JestMockedObject } from 'jest-mock'; | ||
import type { ClassLike, FunctionLike, Mock as JestMock, Mocked as JestMocked, MockedClass as JestMockedClass, MockedFunction as JestMockedFunction, MockedObject as JestMockedObject, UnknownFunction } from 'jest-mock'; | ||
export declare const expect: JestExpect; | ||
@@ -28,2 +28,6 @@ export declare const it: Global.GlobalAdditions['it']; | ||
/** | ||
* Constructs the type of a mock function, e.g. the return type of `jest.fn()`. | ||
*/ | ||
type Mock<T extends FunctionLike = UnknownFunction> = JestMock<T>; | ||
/** | ||
* Wraps a class, function or object type with Jest mock type definitions. | ||
@@ -30,0 +34,0 @@ */ |
{ | ||
"name": "@jest/globals", | ||
"version": "29.0.2", | ||
"version": "29.0.3", | ||
"repository": { | ||
@@ -23,6 +23,6 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^29.0.2", | ||
"@jest/expect": "^29.0.2", | ||
"@jest/types": "^29.0.2", | ||
"jest-mock": "^29.0.2" | ||
"@jest/environment": "^29.0.3", | ||
"@jest/expect": "^29.0.3", | ||
"@jest/types": "^29.0.3", | ||
"jest-mock": "^29.0.3" | ||
}, | ||
@@ -32,3 +32,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "616fcf56bb8481d29ba29cc34be32a92b1cf85e5" | ||
"gitHead": "77f865da39af5b3e1c114dc347e49257eb3dcfd1" | ||
} |
4399
58
Updated@jest/environment@^29.0.3
Updated@jest/expect@^29.0.3
Updated@jest/types@^29.0.3
Updatedjest-mock@^29.0.3