JsApiReporter.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031
  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. import type Timer from './Timer';
  12. export default class JsApiReporter implements Reporter {
  13. started: boolean;
  14. finished: boolean;
  15. runDetails: RunDetails;
  16. jasmineStarted: (runDetails: RunDetails) => void;
  17. jasmineDone: (runDetails: RunDetails) => void;
  18. status: () => unknown;
  19. executionTime: () => unknown;
  20. suiteStarted: (result: SuiteResult) => void;
  21. suiteDone: (result: SuiteResult) => void;
  22. suiteResults: (index: number, length: number) => Array<SuiteResult>;
  23. suites: () => Record<string, SuiteResult>;
  24. specResults: (index: number, length: number) => Array<SpecResult>;
  25. specDone: (result: SpecResult) => void;
  26. specs: () => Array<SpecResult>;
  27. specStarted: (spec: SpecResult) => void;
  28. constructor(options: {
  29. timer?: Timer;
  30. });
  31. }