Unit test results integration for TypeScript

I have TypeScript (React Native) based project.
There are Jest-based unit tests.
What should be done in order to publish their report to SonarCloud?
I tried “sonar.junit.reportPaths=junit.xml”, but without success.

Hello Vitaly,

The property sonar.junit.reportPaths you are trying to use is only compatible with Java.

If you want to import your test results in Typescript you can refer to the coverage documentation page.

To sum it up, you should use something like jest-sonar-reporter to generate the report in a generic format and then set the sonar.testExecutionReportPaths property with a path to that file.

Thank you, I’ll convert test report in a generic format.