Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
error.stack;
} else {
code.trim();
}
});
const cov = instrumenter.lastFileCoverage();
Object.create(cov);
const map = instrumenter.lastSourceMap();
Object.create(map);
const initialCov = readInitialCoverage(code);
initialCov.gcv;
programVisitor(babelTypes);
programVisitor(babelTypes, filename);
programVisitor(babelTypes, filename, { coverageVariable: 'coverage' });
const visitor = programVisitor(babelTypes, filename, { inputSourceMap: sourceMap });
visitor.enter(filename);
const data = visitor.exit(filename);
Object.create(data.fileCoverage);
}
});
const cov = instrumenter.lastFileCoverage();
Object.create(cov);
const map = instrumenter.lastSourceMap();
Object.create(map);
const initialCov = readInitialCoverage(code);
initialCov.gcv;
programVisitor(babelTypes);
programVisitor(babelTypes, filename);
programVisitor(babelTypes, filename, { coverageVariable: 'coverage' });
const visitor = programVisitor(babelTypes, filename, { inputSourceMap: sourceMap });
visitor.enter(filename);
const data = visitor.exit(filename);
Object.create(data.fileCoverage);
code.trim();
}
});
const cov = instrumenter.lastFileCoverage();
Object.create(cov);
const map = instrumenter.lastSourceMap();
Object.create(map);
const initialCov = readInitialCoverage(code);
initialCov.gcv;
programVisitor(babelTypes);
programVisitor(babelTypes, filename);
programVisitor(babelTypes, filename, { coverageVariable: 'coverage' });
const visitor = programVisitor(babelTypes, filename, { inputSourceMap: sourceMap });
visitor.enter(filename);
const data = visitor.exit(filename);
Object.create(data.fileCoverage);
}
let { inputSourceMap } = this.opts
if (this.opts.useInlineSourceMaps !== false) {
if (!inputSourceMap && this.file.inputMap) {
inputSourceMap = this.file.inputMap.sourcemap
}
}
const visitorOptions = {}
Object.entries(schema.defaults.instrumentVisitor).forEach(([name, defaultValue]) => {
if (name in this.nycConfig) {
visitorOptions[name] = this.nycConfig[name]
} else {
visitorOptions[name] = schema.defaults.instrumentVisitor[name]
}
})
this.__dv__ = programVisitor(t, realPath, {
...visitorOptions,
inputSourceMap
})
this.__dv__.enter(path)
},
exit (path) {