Jest, Sonar, and Monorepos

thepyrotv

Shawn (He/Him)

Posted on December 10, 2021

Jest, Sonar, and Monorepos

The jest-sonar-reporter plugin recommended by Sonarqube in their docs for test execution analysis is 4 years out of date and deprecated.

Yet it has been downloaded 287862 times this week (as of 2021/12/10) from npmjs.com

I need this plugin for work I'm doing on a 55+ app monorepo all with their own jest.config.js file as well as making sure the CI/CD can find the execution analysis references.

So I updated it.

Updates

  • Added flag for relative paths to be used in generated xml file path for CI/CD
  • Migrated to Typescript
  • Can now be registered as a reporter in jest.config.js
  • Can now be used in package.json with more variables

You can find the update here: https://www.npmjs.com/package/@casualbot/jest-sonar-reporter

💖 💪 🙅 🚩
thepyrotv
Shawn (He/Him)

Posted on December 10, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Jest, Sonar, and Monorepos
jest Jest, Sonar, and Monorepos

December 10, 2021