UNPKG

762 BTypeScriptView Raw
1import Suite, { SuiteProperties, TestLifecycleFunction } from './Suite';
2import BenchmarkTest from './BenchmarkTest';
3export default class BenchmarkSuite extends Suite implements BenchmarkSuiteProperties {
4 afterEachLoop: TestLifecycleFunction | undefined;
5 beforeEachLoop: TestLifecycleFunction | undefined;
6 tests: (BenchmarkSuite | BenchmarkTest)[];
7 constructor(options: BenchmarkSuiteOptions);
8}
9export interface BenchmarkSuiteProperties extends SuiteProperties {
10 beforeEachLoop: TestLifecycleFunction | undefined;
11 afterEachLoop: TestLifecycleFunction | undefined;
12}
13export declare type BenchmarkSuiteOptions = Partial<BenchmarkSuiteProperties> & {
14 name: string;
15 parent: Suite;
16 tests?: (BenchmarkSuite | BenchmarkTest)[];
17};