Coverage is Sonarqube dashboard not reflecting same as Jest istanbul coverage

Hi All , I have integrated code coverage in my react app - Jest unit tests with Istanbul , Coverage
is showing as 40-43 %
i have excluded some files in Jest coverage -
“coveragePathIgnorePatterns”: [
The same % is not getting reflected in Sonarqube dashboard , it is not excluding the IgnorePatterns.
I also tried - -Dsonar.exclusions=./node_modules,./src/components/reports,./src/components/eup \ - in config.yml


Welcome to the community!

This dusty, but still-relevant blog post may help:

Regarding your exclusions, but setting sonar.exclusions you completely excluded the files from analysis. Probably you wanted to set coverage exclusions.