mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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) {
|
exports.initialize = function (loaderConfig) {
|
||||||
const instrumenter = iLibInstrument.createInstrumenter();
|
const instrumenter = iLibInstrument.createInstrumenter();
|
||||||
loaderConfig.nodeInstrumenter = function (contents, source) {
|
loaderConfig.nodeInstrumenter = function (contents, source) {
|
||||||
if (minimatch(source, '**/test/**/*.test.js')) {
|
if (minimatch(source, '**/test/**')) { // {{SQL CARBON EDIT}} Don't instrument test helper stuff either
|
||||||
// tests don't get instrumented
|
|
||||||
return contents;
|
return contents;
|
||||||
}
|
}
|
||||||
// Try to find a .map file
|
// Try to find a .map file
|
||||||
|
|||||||
Reference in New Issue
Block a user