1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { Jest } from '@jest/environment';
|
8 | import type { JestExpect } from '@jest/expect';
|
9 | import type { Global } from '@jest/types';
|
10 | import type { ClassLike, FunctionLike, Mock as JestMock, Mocked as JestMocked, MockedClass as JestMockedClass, MockedFunction as JestMockedFunction, MockedObject as JestMockedObject, Replaced as JestReplaced, Spied as JestSpied, SpiedClass as JestSpiedClass, SpiedFunction as JestSpiedFunction, SpiedGetter as JestSpiedGetter, SpiedSetter as JestSpiedSetter, UnknownFunction } from 'jest-mock';
|
11 | export declare const expect: JestExpect;
|
12 | export declare const it: Global.GlobalAdditions['it'];
|
13 | export declare const test: Global.GlobalAdditions['test'];
|
14 | export declare const fit: Global.GlobalAdditions['fit'];
|
15 | export declare const xit: Global.GlobalAdditions['xit'];
|
16 | export declare const xtest: Global.GlobalAdditions['xtest'];
|
17 | export declare const describe: Global.GlobalAdditions['describe'];
|
18 | export declare const xdescribe: Global.GlobalAdditions['xdescribe'];
|
19 | export declare const fdescribe: Global.GlobalAdditions['fdescribe'];
|
20 | export declare const beforeAll: Global.GlobalAdditions['beforeAll'];
|
21 | export declare const beforeEach: Global.GlobalAdditions['beforeEach'];
|
22 | export declare const afterEach: Global.GlobalAdditions['afterEach'];
|
23 | export declare const afterAll: Global.GlobalAdditions['afterAll'];
|
24 | declare const jest: Jest;
|
25 | declare namespace jest {
|
26 | |
27 |
|
28 |
|
29 | type Mock<T extends FunctionLike = UnknownFunction> = JestMock<T>;
|
30 | |
31 |
|
32 |
|
33 | type Mocked<T extends object> = JestMocked<T>;
|
34 | |
35 |
|
36 |
|
37 | type MockedClass<T extends ClassLike> = JestMockedClass<T>;
|
38 | |
39 |
|
40 |
|
41 | type MockedFunction<T extends FunctionLike> = JestMockedFunction<T>;
|
42 | |
43 |
|
44 |
|
45 | type MockedObject<T extends object> = JestMockedObject<T>;
|
46 | |
47 |
|
48 |
|
49 | type Replaced<T> = JestReplaced<T>;
|
50 | |
51 |
|
52 |
|
53 | type Spied<T extends ClassLike | FunctionLike> = JestSpied<T>;
|
54 | |
55 |
|
56 |
|
57 | type SpiedClass<T extends ClassLike> = JestSpiedClass<T>;
|
58 | |
59 |
|
60 |
|
61 | type SpiedFunction<T extends FunctionLike> = JestSpiedFunction<T>;
|
62 | |
63 |
|
64 |
|
65 | type SpiedGetter<T> = JestSpiedGetter<T>;
|
66 | |
67 |
|
68 |
|
69 | type SpiedSetter<T> = JestSpiedSetter<T>;
|
70 | }
|
71 | export { jest };
|