Include the external/ folder in the coverage report for gulp unittestcli

Given that the (browser) `gulp unittest` coverage includes the `external/` folder, it seems reasonable to include that folder in the coverage report when running unit-tests in Node.js as well.
This commit is contained in:
Jonas Jenwald 2026-05-05 21:48:04 +02:00
parent ac51bdf745
commit d33d9fc61d
2 changed files with 1 additions and 15 deletions

View File

@ -1,14 +0,0 @@
{
"reporter": ["text", "html", "lcov"],
"include": [
"build/lib-legacy/core/**/*.js",
"build/lib-legacy/display/**/*.js",
"build/lib-legacy/shared/**/*.js",
"build/lib-legacy/web/**/*.js"
],
"exclude": ["build/lib-legacy/test/**"],
"all": false,
"check-coverage": false,
"report-dir": "./build/coverage",
"temp-directory": "./build/.c8_output"
}

View File

@ -1725,7 +1725,7 @@ function buildLibHelper(bundleDefines, inputStream, outputDir) {
"babel-plugin-istanbul",
{
cwd: __dirname,
include: ["src/**/*.js", "web/**/*.js"],
include: ["external/**/*.js", "src/**/*.js", "web/**/*.js"],
},
]);
}