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

Set up unit testing #42

Open
GabrielMajeri opened this issue Feb 10, 2024 · 0 comments
Open

Set up unit testing #42

GabrielMajeri opened this issue Feb 10, 2024 · 0 comments
Assignees
Labels
back-end Issue related to the back end logic of the application front-end Issue relating to UI/UX

Comments

@GabrielMajeri
Copy link
Member

We should look into writing a few unit tests to ensure the correctness and quality of our code. We can use Jest + ts-jest as a test runner and React Testing Library for interacting with the components being tested.

Possible tests

  • The root app component renders correctly (smoke test)
  • The payment forms can be filled-in and submitted (we can mock the database for these tests, we only want to check that the UI and the end points work)
  • The admin dashboard pages display an error message if the user is not logged in (we can mock the auth state)
  • The user can log into the admin page (we can mock the auth flow)
@GabrielMajeri GabrielMajeri added front-end Issue relating to UI/UX back-end Issue related to the back end logic of the application labels Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Issue related to the back end logic of the application front-end Issue relating to UI/UX
Projects
None yet
Development

No branches or pull requests

2 participants