UNPKG

913 BTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7import type Suite from './jasmine/Suite';
8declare type Options = {
9 nodeComplete: (suite: TreeNode) => void;
10 nodeStart: (suite: TreeNode) => void;
11 queueRunnerFactory: any;
12 runnableIds: Array<string>;
13 tree: TreeNode;
14};
15export declare type TreeNode = {
16 afterAllFns: Array<unknown>;
17 beforeAllFns: Array<unknown>;
18 disabled?: boolean;
19 execute: (onComplete: () => void, enabled: boolean) => void;
20 id: string;
21 onException: (error: Error) => void;
22 sharedUserContext: () => unknown;
23 children?: Array<TreeNode>;
24} & Pick<Suite, 'getResult' | 'parentSuite' | 'result' | 'markedPending'>;
25export default function treeProcessor(options: Options): void;
26export {};