reporter.d.ts 1.2 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. import { TestResult } from '@jest/test-result';
  8. import type { Config } from '@jest/types';
  9. import type { SpecResult } from './jasmine/Spec';
  10. import type { SuiteResult } from './jasmine/Suite';
  11. import type { Reporter, RunDetails } from './types';
  12. export default class Jasmine2Reporter implements Reporter {
  13. private _testResults;
  14. private _globalConfig;
  15. private _config;
  16. private _currentSuites;
  17. private _resolve;
  18. private _resultsPromise;
  19. private _startTimes;
  20. private _testPath;
  21. constructor(globalConfig: Config.GlobalConfig, config: Config.ProjectConfig, testPath: Config.Path);
  22. jasmineStarted(_runDetails: RunDetails): void;
  23. specStarted(spec: SpecResult): void;
  24. specDone(result: SpecResult): void;
  25. suiteStarted(suite: SuiteResult): void;
  26. suiteDone(_result: SuiteResult): void;
  27. jasmineDone(_runDetails: RunDetails): void;
  28. getResults(): Promise<TestResult>;
  29. private _addMissingMessageToStack;
  30. private _extractSpecResults;
  31. }