From d33d9fc61d5ec8c2b4e2fa8e8ca96a9bcee3d71f Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 5 May 2026 21:48:04 +0200 Subject: [PATCH] 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. --- .c8rc.json | 14 -------------- gulpfile.mjs | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 .c8rc.json diff --git a/.c8rc.json b/.c8rc.json deleted file mode 100644 index 1311dc1b7..000000000 --- a/.c8rc.json +++ /dev/null @@ -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" -} diff --git a/gulpfile.mjs b/gulpfile.mjs index c103614cd..6bc953fba 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -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"], }, ]); }