From 1da229c76c141ecc3979c5bd70914b5d604fc774 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 10 Jun 2024 14:41:02 -0400 Subject: [PATCH 1/2] Only collect coverage information from tools/src. Signed-off-by: dblock --- jest.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/**'] } From dff80e62a9bc824fdb021402ee7cfb476f4aaa03 Mon Sep 17 00:00:00 2001 From: dblock Date: Mon, 10 Jun 2024 14:52:27 -0400 Subject: [PATCH 2/2] Adjust threshold to avoid false negatives. Signed-off-by: dblock --- codecov.yml | 5 +++++ 1 file changed, 5 insertions(+) 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%