UNPKG

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