From ba3f5b2d98ad86b3a7db441bacaa6f005e330d9f Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Mon, 10 Jun 2024 17:06:48 -0400 Subject: [PATCH] Code coverage nits. (#329) * Only collect coverage information from tools/src. Signed-off-by: dblock --- codecov.yml | 5 +++++ jest.config.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..b07361e52 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,5 @@ +coverage: + status: + project: + default: + threshold: 0.1% diff --git a/jest.config.js b/jest.config.js index 24da6a51e..a2bd7196f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -11,5 +11,6 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', - moduleDirectories: ['node_modules', './tools/src'] + moduleDirectories: ['node_modules', './tools/src'], + collectCoverageFrom: ['tools/src/**'] }