Need help with code coverage reporting on a reactjs project

Hi

My project is on GitLab and I have setup gitlab ci. …

i got a negative coverage score at first and now I am getting zero

react-test:
  stage: react
  image: node:18
  script:
    - cd SolarMarketplace.React/
    - npm install
    - npm run test --coverage --watchAll=false --coverageReporter=lcov
  artifacts:
    paths:
      - ReactProject/coverage/lcov.info
    expire_in: 1 day


react-sonar-analysis:
   stage: react
   image: sonarsource/sonar-scanner-cli:latest
   script:
     - sonar-scanner -Dsonar.sources=ReactProject -Dsonar.organization=$SONAR_ORG -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.login=$SONAR_TOKEN -Dsonar.javascript.lcov.reportPaths=./ReactProject/coverage/lcov.info
   needs:
     - job: react-test
       artifacts: true

Any assistance would be appreciated

Many thanks

What do the logs say about importing code coverage?