From 068b47ebe36f845d60ecf3b6dcd00a8c836112a2 Mon Sep 17 00:00:00 2001 From: soufiane Date: Mon, 1 Dec 2025 23:05:52 +0100 Subject: [PATCH] fix: add hooks, contexts, lib to jest coverage collection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The jest.config.js was missing hooks/, contexts/, and lib/ directories from collectCoverageFrom, causing 0% coverage to be reported for these files in SonarQube. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- jest.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jest.config.js b/jest.config.js index 5134df4..b7723b2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -21,8 +21,11 @@ const customJestConfig = { collectCoverageFrom: [ 'app/**/*.{js,jsx,ts,tsx}', 'components/**/*.{js,jsx,ts,tsx}', + 'hooks/**/*.{js,jsx,ts,tsx}', 'services/**/*.{js,jsx,ts,tsx}', 'utils/**/*.{js,jsx,ts,tsx}', + 'contexts/**/*.{js,jsx,ts,tsx}', + 'lib/**/*.{js,jsx,ts,tsx}', '!**/*.d.ts', '!**/node_modules/**', '!**/.next/**',