1 | import Suite, { SuiteProperties } from '../Suite';
|
2 | import { TestProperties } from '../Test';
|
3 | import { Executor } from '../executors/Executor';
|
4 | export interface TddInterface extends TddLifecycleInterface {
|
5 | suite(name: string, factory: TddSuiteFactory): void;
|
6 | test(name: string, test: TestProperties['test']): void;
|
7 | }
|
8 | export interface TddLifecycleInterface {
|
9 | before(fn: SuiteProperties['before']): void;
|
10 | after(fn: SuiteProperties['after']): void;
|
11 | beforeEach(fn: SuiteProperties['beforeEach']): void;
|
12 | afterEach(fn: SuiteProperties['afterEach']): void;
|
13 | }
|
14 | export declare type TddSuiteFactory = (suite: Suite) => void;
|
15 | export declare function suite(name: string, factory: TddSuiteFactory): void;
|
16 | export declare function test(name: string, test: TestProperties['test']): void;
|
17 | export declare function before(fn: SuiteProperties['before']): void;
|
18 | export declare function after(fn: SuiteProperties['after']): void;
|
19 | export declare function beforeEach(fn: SuiteProperties['beforeEach']): void;
|
20 | export declare function afterEach(fn: SuiteProperties['afterEach']): void;
|
21 | export declare function getInterface(executor: Executor): TddInterface;
|