web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
972 B

  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 { AggregatedResult, TestResult } from '@jest/test-result';
  8. import type { Config } from '@jest/types';
  9. import BaseReporter from './BaseReporter';
  10. import type { Context, CoverageReporterOptions, Test } from './types';
  11. export default class CoverageReporter extends BaseReporter {
  12. private _coverageMap;
  13. private _globalConfig;
  14. private _sourceMapStore;
  15. private _options;
  16. private _v8CoverageResults;
  17. constructor(globalConfig: Config.GlobalConfig, options?: CoverageReporterOptions);
  18. onTestResult(_test: Test, testResult: TestResult): void;
  19. onRunComplete(contexts: Set<Context>, aggregatedResults: AggregatedResult): Promise<void>;
  20. private _addUntestedFiles;
  21. private _checkThreshold;
  22. private _getCoverageResult;
  23. }