NCIOCPL / sitewide-search-app

App for Sitewide Search results pages
2 stars 0 forks source link

Setup Cypress Code Coverage and Merge With Jest #125

Closed bryanpizzillo closed 1 year ago

bryanpizzillo commented 3 years ago

Issue description

This is basically https://github.com/NCIOCPL/cgov-react-app-playground/issues/38, but @cypress/code-coverage needs to be installed first. So install it, and follow the pattern in the playground.

We need to update the scripts and the overall process for combined code coverage to align with the approach in CTS.

The code coverage changes were made in #265 for clinical-trials-search-app.

The following files in CTS have major diferences --use them as a reference:

Itemized changes

Mileage may vary per repository but for cgov-react-app-playground the following is required:

With the updated standards check, the workflow will fail unless the linting issues are addressed.

In a separate commit tagged to the same issue, address any linting issues with the linted Cypress Javascript.

Fixing the Cypress lint issues

First

Then

ESTIMATE 2

Resources:

Notes