Doesn't Jest itself have a coverage tool? Why do we need to add Sonar in the first place?
This setup is for the case where you want to check the sonar coverage/report locally before pushing your code to a pipeline. Instead of failing the tests on pipeline, we can check things like bugs/duplication/coverage locally and then push the code, as Jest coverage mostly comes out higher than SonarQube coverage.
CODmon Inc
Learning phase forever.
Doesn't Jest itself have a coverage tool? Why do we need to add Sonar in the first place?