/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { Config } from '@jest/types'; import expectationResultFactory from '../expectationResultFactory'; import { QueueableFn } from '../queueRunner'; import Spec from './Spec'; export declare type SuiteResult = { id: string; description: string; fullName: string; failedExpectations: Array>; testPath: Config.Path; status?: string; }; export declare type Attributes = { id: string; parentSuite?: Suite; description: string; throwOnExpectationFailure?: boolean; getTestPath: () => Config.Path; }; export default class Suite { id: string; parentSuite?: Suite; description: string; throwOnExpectationFailure: boolean; beforeFns: Array; afterFns: Array; beforeAllFns: Array; afterAllFns: Array; disabled: boolean; children: Array; result: SuiteResult; sharedContext?: object; markedPending: boolean; markedTodo: boolean; isFocused: boolean; constructor(attrs: Attributes); getFullName(): string; disable(): void; pend(_message?: string): void; beforeEach(fn: QueueableFn): void; beforeAll(fn: QueueableFn): void; afterEach(fn: QueueableFn): void; afterAll(fn: QueueableFn): void; addChild(child: Suite | Spec): void; status(): "failed" | "pending" | "disabled" | "finished"; isExecutable(): boolean; canBeReentered(): boolean; getResult(): SuiteResult; sharedUserContext(): object; clonedSharedUserContext(): object; onException(...args: Parameters): void; addExpectationResult(...args: Parameters): void; execute(..._args: Array): void; } //# sourceMappingURL=Suite.d.ts.map