-
Notifications
You must be signed in to change notification settings - Fork 48
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
Feat/hook tests #130
Conversation
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.
…d updated useEntities.test.ts
@agutierrezgit Thank you for your feedback. I went ahead and made the necessary updates. I am now ready for review. |
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 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 Report
@@ Coverage Diff @@
## main #130 +/- ##
======================================
Coverage ? 9.09%
======================================
Files ? 444
Lines ? 29697
Branches ? 208
======================================
Hits ? 2701
Misses ? 26990
Partials ? 6 |
Co-authored-by: Alexey Temnikov <[email protected]>
Co-authored-by: Alexey Temnikov <[email protected]>
Co-authored-by: Alexey Temnikov <[email protected]>
This PR adds test cases in the
graph-explorer
package:isErrorResponse
in packages/graph-explorer/src/connector/utils/isErrorResponse.test.tsuseEntities
in packages/graph-explorer/src/hooks/useEntities.test.tsuseEntitiesCounts
in packages/graph-explorer/src/hooks/useEntitiesCounts.test.tsuseNeighborsOptions
in packages/graph-explorer/src/hooks/useNeighborsOptions.test.tsusePrevious
in packages/graph-explorer/src/hooks/usePrevious.test.tsuseTextTransform
in packages/graph-explorer/src/hooks/useTextTransform.test.tsMotivation
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.