CoverageWorker.d.ts 744 B

1234567891011121314151617
  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 { Config } from '@jest/types';
  8. import { CoverageWorkerResult } from './generateEmptyCoverage';
  9. import type { CoverageReporterSerializedOptions } from './types';
  10. export declare type CoverageWorkerData = {
  11. globalConfig: Config.GlobalConfig;
  12. config: Config.ProjectConfig;
  13. path: Config.Path;
  14. options?: CoverageReporterSerializedOptions;
  15. };
  16. export type { CoverageWorkerResult };
  17. export declare function worker({ config, globalConfig, path, options, }: CoverageWorkerData): Promise<CoverageWorkerResult | null>;