1 | import Suite, { SuiteProperties } from '../Suite';
|
2 | import Test, { TestFunction } from '../Test';
|
3 | import { Executor } from '../executors/Executor';
|
4 | export default function registerSuite(name: string, descriptorOrFactory: ObjectSuiteDescriptor | ObjectSuiteFactory | Tests): void;
|
5 | export declare function getInterface(executor: Executor): {
|
6 | registerSuite(name: string, descriptorOrFactory: ObjectSuiteDescriptor | ObjectSuiteFactory | Tests): void;
|
7 | };
|
8 | export interface ObjectInterface {
|
9 | registerSuite(name: string, mainDescriptor: ObjectSuiteDescriptor | ObjectSuiteFactory | Tests): void;
|
10 | }
|
11 | export interface Tests {
|
12 | [name: string]: ObjectSuiteDescriptor | TestFunction | Tests;
|
13 | }
|
14 | export interface ObjectSuiteDescriptor extends Partial<SuiteProperties> {
|
15 | tests: Tests;
|
16 | }
|
17 | export interface ObjectSuiteFactory {
|
18 | (): ObjectSuiteDescriptor | Tests;
|
19 | }
|
20 | export declare function isSuiteDescriptorFactory<T>(value: any): value is T;
|
21 | export declare function createSuite<S extends typeof Suite, T extends typeof Test>(name: string, parent: Suite, descriptor: ObjectSuiteDescriptor | Tests, SuiteClass: S, TestClass: T): Suite;
|