Hello All, I am having one node.js code in which I have written one API, I am using jest for unit test cases.
All my code along with test cases are inside src folder.
All my test cases are inside test folder. So according to that I have added that sonar.tests=src/test in my property file. On console my test coverage is around 92% But its not reflecting it into sonar dashboard.
My jenkins pipeline is failing by sending error message like below:
File src/test/filename.test.js can’t be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files