UNPKG

intern

Version:

Intern. A next-generation code testing stack for JavaScript.

18 lines (17 loc) 762 B
import Suite, { SuiteProperties, TestLifecycleFunction } from './Suite'; import BenchmarkTest from './BenchmarkTest'; export default class BenchmarkSuite extends Suite implements BenchmarkSuiteProperties { afterEachLoop: TestLifecycleFunction | undefined; beforeEachLoop: TestLifecycleFunction | undefined; tests: (BenchmarkSuite | BenchmarkTest)[]; constructor(options: BenchmarkSuiteOptions); } export interface BenchmarkSuiteProperties extends SuiteProperties { beforeEachLoop: TestLifecycleFunction | undefined; afterEachLoop: TestLifecycleFunction | undefined; } export declare type BenchmarkSuiteOptions = Partial<BenchmarkSuiteProperties> & { name: string; parent: Suite; tests?: (BenchmarkSuite | BenchmarkTest)[]; };