Skip to content

Commit ddd37b6

Browse files
committed
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.
1 parent ac51bdf commit ddd37b6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.c8rc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"reporter": ["text", "html", "lcov"],
33
"include": [
4+
"build/external/**/*.js",
45
"build/lib-legacy/core/**/*.js",
56
"build/lib-legacy/display/**/*.js",
67
"build/lib-legacy/shared/**/*.js",

gulpfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ function buildLibHelper(bundleDefines, inputStream, outputDir) {
17251725
"babel-plugin-istanbul",
17261726
{
17271727
cwd: __dirname,
1728-
include: ["src/**/*.js", "web/**/*.js"],
1728+
include: ["external/**/*.js", "src/**/*.js", "web/**/*.js"],
17291729
},
17301730
]);
17311731
}

0 commit comments

Comments
 (0)