mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Don't instrument any test code for coverage (#8598)
This commit is contained in:
@@ -17,8 +17,7 @@ const REPO_PATH = toUpperDriveLetter(path.join(__dirname, '..'));
|
||||
exports.initialize = function (loaderConfig) {
|
||||
const instrumenter = iLibInstrument.createInstrumenter();
|
||||
loaderConfig.nodeInstrumenter = function (contents, source) {
|
||||
if (minimatch(source, '**/test/**/*.test.js')) {
|
||||
// tests don't get instrumented
|
||||
if (minimatch(source, '**/test/**')) { // {{SQL CARBON EDIT}} Don't instrument test helper stuff either
|
||||
return contents;
|
||||
}
|
||||
// Try to find a .map file
|
||||
|
||||
Reference in New Issue
Block a user