Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Setup Testing Framework #812

Closed

Conversation

alexlwn123
Copy link
Contributor

Relates to testing discussion in #804

This is a work in progress. Opening this draft PR for transparency and to invite feedback on this testing strategy.

Made progress in setting up a frontend testing framework. Seems to be working with all of our current dependencies.

Utilizes jest and the React Testing Library.

Strategy

  • Utilize the React Testing Library to render each page.
  • Override the render function to wrap all components in ReactContexts (see jest/test-utils.jsx). This allows components to be tested in a fairly realistic environment.
  • Store snapshots of each page to catch unwanted UI changes.

TODO

  • Handle ssr data
  • Begin increasing coverage (add more tests)
  • Add CI workflow

@alexlwn123 alexlwn123 added the enhancement improvements to existing features label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants