| | |
| | | * instead. |
| | | * @param {Object} opts optional. |
| | | * @param {string} [opts.coverageVariable=__coverage__] name of global coverage variable. |
| | | * @param {boolean} [opts.preserveComments=false] preserve comments in output |
| | | * @param {boolean} [opts.reportLogic=false] report boolean value of logical expressions. |
| | | * @param {boolean} [opts.preserveComments=false] preserve comments in output. |
| | | * @param {boolean} [opts.compact=true] generate compact code. |
| | | * @param {boolean} [opts.esModules=false] set to true to instrument ES6 modules. |
| | | * @param {boolean} [opts.autoWrap=false] set to true to allow `return` statements outside of functions. |
| | |
| | | * @param {Array} [opts.ignoreClassMethods=[]] set to array of class method names to ignore for coverage. |
| | | * @param {Function} [opts.sourceMapUrlCallback=null] a callback function that is called when a source map URL |
| | | * is found in the original code. This function is called with the source file name and the source map URL. |
| | | * @param {boolean} [opts.debug=false] - turn debugging on |
| | | * @param {boolean} [opts.debug=false] - turn debugging on. |
| | | * @param {array} [opts.parserPlugins] - set babel parser plugins, see @istanbuljs/schema for defaults. |
| | | */ |
| | | class Instrumenter { |
| | |
| | | ({ types }) => { |
| | | const ee = programVisitor(types, filename, { |
| | | coverageVariable: opts.coverageVariable, |
| | | reportLogic: opts.reportLogic, |
| | | coverageGlobalScope: opts.coverageGlobalScope, |
| | | coverageGlobalScopeFunc: |
| | | opts.coverageGlobalScopeFunc, |