treeProcessor.d.ts 913 B

1234567891011121314151617181920212223242526
  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. */
  7. import type Suite from './jasmine/Suite';
  8. declare type Options = {
  9. nodeComplete: (suite: TreeNode) => void;
  10. nodeStart: (suite: TreeNode) => void;
  11. queueRunnerFactory: any;
  12. runnableIds: Array<string>;
  13. tree: TreeNode;
  14. };
  15. export 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'>;
  25. export default function treeProcessor(options: Options): void;
  26. export {};