All files / istanbul-lib-instrument/src index.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25                          2x                      
import { defaults } from "@istanbuljs/schema";
 
import Instrumenter from "./instrumenter";
import type { InstrumenterOptions } from "./instrumenter";
import readInitialCoverage from "./read-coverage";
 
/**
 * createInstrumenter creates a new instrumenter with the
 * supplied options.
 * @param opts - instrumenter options. See the documentation
 * for the Instrumenter class.
 */
function createInstrumenter(opts?: Partial<InstrumenterOptions>): Instrumenter {
  return new Instrumenter(opts);
}
 
const defaultOpts = defaults.instrumenter;
 
export { createInstrumenter, readInitialCoverage, defaultOpts };
 
export type { Instrumenter };
export type { InstrumenterCallback, InstrumenterOptions, SourceMap } from "./instrumenter";
export type { InitialCoverage } from "./read-coverage";
export type { InputSourceMap, SourceCoverageData } from "./source-coverage";