koliveira15 / nx-sonarqube

A Nx plugin that scans projects using SonarQube / SonarCloud.
MIT License
52 stars 21 forks source link

Fail to find coverage paths in jest config using latest typescript 5.5.3 #111

Closed mauriciovillalobos closed 1 week ago

mauriciovillalobos commented 4 months ago

If possible, please provide a reproduction repository you discovered this bug in.

https://stackblitz.com/edit/stackblitz-starters-b9kfqj?file=index.ts

Which area/package is the issue in?

@koliveira15/nx-sonarqube

Description

After updating to the latest typescript 5.5.3, the coverageDirectory field cannot be found in jest.config.ts resulting in no lcov paths included and 0% test coverage report.

I tracked it down to the @phenomnomnominal/tsquery dependency and opened an issue on the repo https://github.com/phenomnomnominal/tsquery/issues/98

They suggest a workaround in the mean time, I tested in the reproduction stackblitz provided and it seems to be working.

Let me know if you need anything else.

If applicable, please provide the Nx report

No response

Please provide the exception or error you saw

Skipping redacted-api as it does not have a coverageDirectory in /workspace/apps/redacted-api/jest.config.ts
Skipping redacted as it does not have a coverageDirectory in /workspace/apps/redacted/jest.config.ts
Skipping quality gate check
Included sources paths: apps/redacted-api/src,apps/redacted/src
Included lcov paths:

Other information

No response

I would be willing to submit a PR to fix this issue

thrillertom commented 2 months ago

Having the same issue, @mauriciovillalobos would you mind opening a PR for the fix?