-
Notifications
You must be signed in to change notification settings - Fork 193
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
Tests: Add tests in Jest to frontend components #7324
base: epic/event-tickets-follow-up-GIVE-371
Are you sure you want to change the base?
Tests: Add tests in Jest to frontend components #7324
Conversation
670f3bb
to
93b1683
Compare
@pauloiankoski This is so freaking cool!! |
@pauloiankoski In concur, this is epic! Can't wait to test it out 😄 |
@pauloiankoski I updated the branch & parent epic. I also had to install |
@pauloiankoski It looks like your tests are already doing their job as we have failing ones on this very PR 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! we have some failing tests though so once you fix those we can merge. If you could also add some @unreleased
tags that would be good too 😄
This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed. |
Resolves #
Description
This pull request serves as a starting point for implementing unit and behavioral tests for our React components. Tests are run in Jest with assistance from the Testing Library React (TLR) library. It includes tests that cover all components used in the Event Tickets frontend.
Additionally, I have added several new scripts to
package.json
to facilitate triggering the tests with specific configurations (listed below). I have also included a job for these tests in our GitHub workflow.npm test
npm run test:verbose
npm run test:watch
npm run test:watch:verbose
npm run test:coverage
Visuals
Testing Instructions
Run one of the new available scripts.
Pre-review Checklist
@unreleased
tags included in DocBlocks