DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Jest, Sonar, and Monorepos
Shawn (He/Him)
Shawn (He/Him)

Posted on

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

Top comments (1)

Collapse
 
zenbeni profile image
Benjamin Houdu

Why imposing node 16?

πŸ‘‹ Hey, my name is Noah and I’m the one who set up this ad. My job is to get you to join DEV, so if you fancy doing me a favor, I’d love for you to create an account.

If you found DEV from searching around, here are a couple of our most popular articles on DEV: