cloud-gov / pages-core

cloud.gov Pages is a publishing platform for modern 21st Century IDEA websites.
https://cloud.gov/pages
Other
275 stars 68 forks source link

Epic: Refactor Test Suite #4014

Open drewbo opened 1 year ago

drewbo commented 1 year ago

As part of a broader React and related dependency upgrade, we likely need to significantly change our current test suite:

Notes

### Tasks
- [ ] Create a partial RTL-based testing suite to be run in conjunction with existing test suite
- [ ] Decide on a test coverage threshold or other metric for deciding when to switch over
- [ ] Add code coverage reporting and delta on PR
drewbo commented 1 year ago

Started initial work on this in https://github.com/cloud-gov/pages-core/tree/refactor-test-suite and updated the acceptance criteria

drewbo commented 2 months ago

Update: I rebased the aforementioned branch and made a few updates to get linting + coverage working with latest main. The coverage stats show that this covers roughly 6% of the components and 4% of the whole frontend folder. An assortment of thoughts with no particular end goal: