-
Couldn't load subscription status.
- Fork 40
Closed
Labels
@asgardeo/javascriptIssues related to the core of the Asgardeo JavaScript SDKsIssues related to the core of the Asgardeo JavaScript SDKsComplexity/MediumIssues with the implementation complexity flagged as `Medium`Issues with the implementation complexity flagged as `Medium`Credits/30HacktoberfestOpen for Hacktoberfest contributors.Open for Hacktoberfest contributors.Type/ImprovementType/TasktestingIssues related to all testing i.e Unit, Integration, E2E, etc.Issues related to all testing i.e Unit, Integration, E2E, etc.
Description
Current Limitation
Currently, some code paths and edge cases in the JavaScript SDK are not covered by existing unit tests. This leads to:
- Reduced confidence in code changes and refactoring
- Potential undetected bugs in less common scenarios
- Lower overall test coverage metrics
- Increased manual testing effort
- Difficulty in maintaining code quality over time
Without adequate unit tests, the codebase may contain:
- Functions or methods that are not validated for all input variations
- Edge cases that may break silently
- Logic errors that are only caught in integration or production environments
Suggested Improvement
Identify gaps in the current unit test suite and add new unit tests to cover untested code paths, edge cases, or recently added functionality.
Implementation Plan
- Review the latest code coverage to identify untested lines/branches.
- Select a function, method, or component that lacks test coverage.
- Write a new unit test that:
- Covers normal, boundary, and invalid input cases
- Asserts correct output and expected error handling
- Run the test suite to confirm the new test is effective and passes.
- Update documentation or test coverage badges as necessary.
References:
Please select the package issue is related to
@asgardeo/javascript
Version
Current
Reporter Checklist
- I have searched the existing issues and this is not a duplicate.
- I have provided all the necessary information.
- I have verified the improvement is not available in the latest version of the package.
Metadata
Metadata
Assignees
Labels
@asgardeo/javascriptIssues related to the core of the Asgardeo JavaScript SDKsIssues related to the core of the Asgardeo JavaScript SDKsComplexity/MediumIssues with the implementation complexity flagged as `Medium`Issues with the implementation complexity flagged as `Medium`Credits/30HacktoberfestOpen for Hacktoberfest contributors.Open for Hacktoberfest contributors.Type/ImprovementType/TasktestingIssues related to all testing i.e Unit, Integration, E2E, etc.Issues related to all testing i.e Unit, Integration, E2E, etc.