You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
1 month ago
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.createInstrumenter = createInstrumenter;
|
||
|
Object.defineProperty(exports, "programVisitor", {
|
||
|
enumerable: true,
|
||
|
get: function () {
|
||
|
return _visitor.default;
|
||
|
}
|
||
|
});
|
||
|
Object.defineProperty(exports, "readInitialCoverage", {
|
||
|
enumerable: true,
|
||
|
get: function () {
|
||
|
return _readCoverage.default;
|
||
|
}
|
||
|
});
|
||
|
exports.defaultOpts = void 0;
|
||
|
|
||
|
var _schema = require("@istanbuljs/schema");
|
||
|
|
||
|
var _instrumenter = _interopRequireDefault(require("./instrumenter"));
|
||
|
|
||
|
var _visitor = _interopRequireDefault(require("./visitor"));
|
||
|
|
||
|
var _readCoverage = _interopRequireDefault(require("./read-coverage"));
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
/**
|
||
|
* createInstrumenter creates a new instrumenter with the
|
||
|
* supplied options.
|
||
|
* @param {Object} opts - instrumenter options. See the documentation
|
||
|
* for the Instrumenter class.
|
||
|
*/
|
||
|
function createInstrumenter(opts) {
|
||
|
return new _instrumenter.default(opts);
|
||
|
}
|
||
|
|
||
|
const defaultOpts = _schema.defaults.instrumenter;
|
||
|
exports.defaultOpts = defaultOpts;
|