| | |
| | | export declare type BlockName = string; |
| | | export declare type HookFn = TestFn; |
| | | export declare type Col = unknown; |
| | | export declare type Row = Array<Col>; |
| | | export declare type Table = Array<Row>; |
| | | export declare type Row = ReadonlyArray<Col>; |
| | | export declare type Table = ReadonlyArray<Row>; |
| | | export declare type ArrayTable = Table | Row; |
| | | export declare type TemplateTable = TemplateStringsArray; |
| | | export declare type TemplateData = Array<unknown>; |
| | | export declare type TemplateData = ReadonlyArray<unknown>; |
| | | export declare type EachTable = ArrayTable | TemplateTable; |
| | | export declare type TestCallback = BlockFn | TestFn | ConcurrentTestFn; |
| | | export declare type EachTestFn<EachCallback extends TestCallback> = (...args: Array<any>) => ReturnType<EachCallback>; |
| | | export declare type EachTestFn<EachCallback extends TestCallback> = (...args: ReadonlyArray<any>) => ReturnType<EachCallback>; |
| | | declare type Jasmine = { |
| | | _DEFAULT_TIMEOUT_INTERVAL?: number; |
| | | addMatchers: (matchers: Record<string, unknown>) => void; |
| | | }; |
| | | declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => () => void); |
| | | declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: TemplateData) => (name: BlockName | TestName, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => () => void); |
| | | export interface HookBase { |
| | | (fn: HookFn, timeout?: number): void; |
| | | } |
| | |
| | | todo: (testName: TestName) => void; |
| | | } |
| | | export interface ItConcurrentBase { |
| | | (testName: string, testFn: ConcurrentTestFn, timeout?: number): void; |
| | | (testName: TestName, testFn: ConcurrentTestFn, timeout?: number): void; |
| | | each: Each<ConcurrentTestFn>; |
| | | } |
| | | export interface ItConcurrentExtended extends ItConcurrentBase { |