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

Comprehenisve testing setup #12

Conversation

cskcvarma
Copy link
Owner

Almost all of the unit test setup is abstracted into test-utils.
Developers can mock in specific files when necessary.

The hooks are mocked, but the api are not.
This means that the APIs will not be unit tested.

The decision to not unit test APIs is taken due to the time concerns and should not impact the app as we are using a reputed APIs.

I will revisit this at a later time.

…ure.

setting up tests in the future will be easier.
@cskcvarma cskcvarma requested a review from asingamaneni as a code owner May 16, 2024 20:36
@cskcvarma cskcvarma merged commit 1f3f778 into main May 17, 2024
4 checks passed
@cskcvarma cskcvarma deleted the 7-tech-debt-setup-the-testing-library-and-utils-to-make-unit-testing-individual-components-easier branch May 17, 2024 20:32
cskcvarma added a commit that referenced this pull request Jul 22, 2024
* Initializing theme files (#11)

* Adding a basic mantine theme file. It will be updated as the code base develops.

Any colors or gaps will not be hardcoded.

They should first be defined in the theme and then should be used in the code.

* updating .gitignore

* Includes a comprehensive test setup with mock data and support structure. (#12)

setting up tests in the future will be easier.

* 9 tech debt setup public private routing (#13)

* Working version of routing

* Implemented routing, however tests for the login page needs to figured out.

* implemented notification from mantine (#14)

* 8 feature implement login functionality using GitHub oauth (#15)

* clean up

* A simple but beautiful login page

* Github Oauth setup

* 16 tech debt complete todos (#17)

* Fixed testing setup and have all tests for OAuth.

* Fixed remaining TODOs, added tests.

* Adding a DEVELOPER.md and .env.example
cskcvarma added a commit that referenced this pull request Jul 22, 2024
…ure. (#12)

setting up tests in the future will be easier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TECH DEBT] Setup the testing library and utils to make unit testing individual components easier
1 participant