1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { Circus, Global } from '@jest/types';
|
8 | export { setState, getState, resetState } from './state';
|
9 | export { default as run } from './run';
|
10 | declare type THook = (fn: Circus.HookFn, timeout?: number) => void;
|
11 | declare const describe: {
|
12 | (blockName: Circus.BlockName, blockFn: Circus.BlockFn): void;
|
13 | each: (table: Global.EachTable, ...taggedTemplateData: Global.TemplateData) => (title: string, test: Global.EachTestFn<Global.TestCallback>, timeout?: number | undefined) => void;
|
14 | only: {
|
15 | (blockName: Circus.BlockName, blockFn: Circus.BlockFn): void;
|
16 | each: (table: Global.EachTable, ...taggedTemplateData: Global.TemplateData) => (title: string, test: Global.EachTestFn<Global.TestCallback>, timeout?: number | undefined) => void;
|
17 | };
|
18 | skip: {
|
19 | (blockName: Circus.BlockName, blockFn: Circus.BlockFn): void;
|
20 | each: (table: Global.EachTable, ...taggedTemplateData: Global.TemplateData) => (title: string, test: Global.EachTestFn<Global.TestCallback>, timeout?: number | undefined) => void;
|
21 | };
|
22 | };
|
23 | declare const beforeEach: THook;
|
24 | declare const beforeAll: THook;
|
25 | declare const afterEach: THook;
|
26 | declare const afterAll: THook;
|
27 | declare const test: Global.It;
|
28 | declare const it: Global.It;
|
29 | export declare type Event = Circus.Event;
|
30 | export declare type State = Circus.State;
|
31 | export { afterAll, afterEach, beforeAll, beforeEach, describe, it, test };
|
32 | declare const _default: {
|
33 | afterAll: THook;
|
34 | afterEach: THook;
|
35 | beforeAll: THook;
|
36 | beforeEach: THook;
|
37 | describe: {
|
38 | (blockName: string, blockFn: Global.BlockFn): void;
|
39 | each: (table: Global.EachTable, ...taggedTemplateData: Global.TemplateData) => (title: string, test: Global.EachTestFn<Global.TestCallback>, timeout?: number | undefined) => void;
|
40 | only: {
|
41 | (blockName: string, blockFn: Global.BlockFn): void;
|
42 | each: (table: Global.EachTable, ...taggedTemplateData: Global.TemplateData) => (title: string, test: Global.EachTestFn<Global.TestCallback>, timeout?: number | undefined) => void;
|
43 | };
|
44 | skip: {
|
45 | (blockName: string, blockFn: Global.BlockFn): void;
|
46 | each: (table: Global.EachTable, ...taggedTemplateData: Global.TemplateData) => (title: string, test: Global.EachTestFn<Global.TestCallback>, timeout?: number | undefined) => void;
|
47 | };
|
48 | };
|
49 | it: Global.It;
|
50 | test: Global.It;
|
51 | };
|
52 | export default _default;
|