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

Feat/hook tests #130

Merged
merged 11 commits into from
Jul 20, 2023
Merged

Feat/hook tests #130

merged 11 commits into from
Jul 20, 2023

Conversation

cubeddu
Copy link
Contributor

@cubeddu cubeddu commented Jul 10, 2023

This PR adds test cases in the graph-explorer package:

Motivation

Adding tests ensures the stability and reliability of the hooks in the graph-explorer package. It helps identify any potential bugs or issues before they impact the functionality of the application.

Changes Made

Test cases have been written for each hook mentioned above. These test cases cover various scenarios and edge cases to validate the correct behavior of the hooks.

Testing

The added test cases have been executed and pass successfully.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@agutierrezgit agutierrezgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this contribution @cubeddu. It's a good starting point to increase test coverage.
Do you think it's possible to enhance tests for useEntities as per my comment?
@joywa I have checked and all test are passing but I'd like to wait for @cubeddu to come back for a final check. Thanks

@cubeddu
Copy link
Contributor Author

cubeddu commented Jul 12, 2023

@agutierrezgit Thank you for your feedback. I went ahead and made the necessary updates. I am now ready for review.

Copy link
Contributor

@agutierrezgit agutierrezgit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @cubeddu thanks. @joywa I have double checked and test are passing. I believe this is great initiative so I'll leave it with you for final approval. Thanks

This commit does the following:

- Configures Jest to generate coverage reports in the  directory.
- Adds  as a Jest reporter to generate JUnit-formatted test results, improving CI visibility.
- Updates the GitHub Actions workflow to upload coverage reports to Codecov, sourced only from the  directory.
- Adds generated coverage reports and JUnit test results to  to prevent them from being committed to the repository.
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@560ee16). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff           @@
##             main    #130   +/-   ##
======================================
  Coverage        ?   9.09%           
======================================
  Files           ?     444           
  Lines           ?   29697           
  Branches        ?     208           
======================================
  Hits            ?    2701           
  Misses          ?   26990           
  Partials        ?       6           

.gitignore Outdated Show resolved Hide resolved
cubeddu and others added 2 commits July 20, 2023 14:41
Co-authored-by: Alexey Temnikov <[email protected]>
pnpm-lock.yaml Outdated Show resolved Hide resolved
@alexey-temnikov alexey-temnikov merged commit 894977c into aws:main Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants