generateEmptyCoverage.d.ts 866 B

12345678910111213141516171819
  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 { V8Coverage } from 'collect-v8-coverage';
  8. import { FileCoverage } from 'istanbul-lib-coverage';
  9. import type { Config } from '@jest/types';
  10. declare type SingleV8Coverage = V8Coverage[number];
  11. export declare type CoverageWorkerResult = {
  12. kind: 'BabelCoverage';
  13. coverage: FileCoverage;
  14. } | {
  15. kind: 'V8Coverage';
  16. result: SingleV8Coverage;
  17. };
  18. export default function generateEmptyCoverage(source: string, filename: Config.Path, globalConfig: Config.GlobalConfig, config: Config.ProjectConfig, changedFiles?: Set<Config.Path>, sourcesRelatedToTestsInChangedFiles?: Set<Config.Path>): Promise<CoverageWorkerResult | null>;
  19. export {};