ReportDispatcher.d.ts 891 B

12345678910111213141516171819202122
  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. */
  8. import type { Reporter, RunDetails } from '../types';
  9. import type { SpecResult } from './Spec';
  10. import type { SuiteResult } from './Suite';
  11. export default class ReportDispatcher implements Reporter {
  12. addReporter: (reporter: Reporter) => void;
  13. provideFallbackReporter: (reporter: Reporter) => void;
  14. clearReporters: () => void;
  15. jasmineDone: (runDetails: RunDetails) => void;
  16. jasmineStarted: (runDetails: RunDetails) => void;
  17. specDone: (result: SpecResult) => void;
  18. specStarted: (spec: SpecResult) => void;
  19. suiteDone: (result: SuiteResult) => void;
  20. suiteStarted: (result: SuiteResult) => void;
  21. constructor(methods: Array<keyof Reporter>);
  22. }