1 |
|
2 | import { ProcessCov, ScriptCov } from "@c88/v8-coverage";
|
3 | import cp from "child_process";
|
4 | import { ChildProcessProxy, ObserveSpawnOptions } from "demurgos-spawn-wrap";
|
5 | import { SourceType } from "istanbulize";
|
6 | import { CoverageFilter } from "./filter";
|
7 | export interface ScriptMeta {
|
8 | sourceText: string;
|
9 | sourceType: SourceType;
|
10 | sourceMapUrl?: string;
|
11 | }
|
12 | export interface RichScriptCov extends ScriptCov, ScriptMeta {
|
13 | }
|
14 | export interface RichProcessCov extends ProcessCov {
|
15 | result: RichScriptCov[];
|
16 | }
|
17 | export interface SpawnInspectedOptions extends ObserveSpawnOptions {
|
18 | filter?: CoverageFilter;
|
19 | onRootProcess?(process: cp.ChildProcess): any;
|
20 | }
|
21 | export declare function spawnInspected(file: string, args: ReadonlyArray<string>, options: SpawnInspectedOptions): Promise<RichProcessCov[]>;
|
22 | export declare function getDebuggerPort(proc: ChildProcessProxy): Promise<number>;
|