jest-sonarcloud-reporter

Export jest tests to sonarcloud

Usage no npm install needed!

<script type="module">
  import jestSonarcloudReporter from 'https://cdn.skypack.dev/jest-sonarcloud-reporter';
</script>

README

jest-sonarcloud-reporter

This is a fork of jest-sonar-reporter in TypeScript. It fixes the systemic generation of absolute paths in test-report.xml by adding the support of a new parameter:

"jestSonar": {
    "withRelativePaths": true,
    ...
}

When the flag withRelativePaths is set to true, test file paths will be generated with relativePaths instead of absolute paths.

That's it, there is nothing more, it just includes what is supported already in jest-sonar-reporter.