Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

93
Views
Cypress e2e code coverage only specific files

I added istanbul plugin and cypress code coverage to my project, but I want to include only the files that I have specified for coverage, but I encountered some problems, for Coverage I want to include only frontend/react and frontend/spa files, for example;

This is for trying to select only for react folder This is html report for coverage of react folder

This is for trying to select only spa folder This is for html report for coverage of spa folder

1- In first image i am selecting only for react folder, and it's kinda working except in Second image some react/ folders is empty doesn't coverage at all, all status is %0, i couldn't understand why ?
2-In Third image i try to select only for spa folder, but it didnt work, and Fourth image as you can see the html report of it, i can able to reach folders but, why it isn't coverage at all ?

And i need to use that 2 folder only for coverage, i try to use this;

  "nyc": {
    "report-dir": "cypress-coverage",
    "all": true,
    "include": [
      "frontend/javascripts/react/**/**.{ts,tsx} &&  frontend/javascripts/spa/**/**.{ts,tsx}"
    ]
  }
}

But it didn't work, i couldn't understand what i am missing? thanks for any ideas.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!