Skip to content

Conversation

@jonwaldstein
Copy link
Contributor

This was created from #7324 after being reverted from develop due to build issues.

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

CleanShot 2024-03-22 at 22 21 53

CleanShot 2024-03-22 at 22 22 25

Testing Instructions

Run one of the new available scripts.

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@github-actions
Copy link

This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed.

@github-actions github-actions bot added the Stale label Mar 11, 2025
@jonwaldstein jonwaldstein changed the base branch from develop to master April 1, 2025 14:58
@jonwaldstein jonwaldstein changed the base branch from master to develop April 1, 2025 14:58
@github-actions github-actions bot removed the Stale label Apr 2, 2025
@github-actions
Copy link

This PR is stale because it has been open 45 days with no activity. Stale PRs will NOT be automatically closed.

@github-actions github-actions bot added the Stale label May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants