Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add unit test coverage for untested code paths in @asgardeo/node SDK #169

Closed
Labels
@asgardeo/nodeIssues related to the `Node.js` runtime wrapper of Asgardeo JavaScript SDK Complexity/MediumIssues with the implementation complexity flagged as `Medium` Credits/30 HacktoberfestOpen for Hacktoberfest contributors. Type/Improvement Type/Task
@NipuniBhagya

Description

Current Limitation

Some code paths and edge cases in @asgardeo/node are not covered by unit tests, leading to reduced confidence in code changes, potential bugs, and lower test coverage.

  • 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 and add unit tests for untested code paths and edge cases in @asgardeo/node. Improve test coverage and reliability.

Implementation Plan

  1. Review the latest code coverage to identify untested lines/branches.
  2. Select a function, method, or component that lacks test coverage.
  3. Write a new unit test that:
    • Covers normal, boundary, and invalid input cases
    • Asserts correct output and expected error handling
  4. Run the test suite to confirm the new test is effective and passes.
  5. Update documentation or test coverage badges as necessary.

References:

Please select the package issue is related to

@asgardeo/node

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

Labels

@asgardeo/nodeIssues related to the `Node.js` runtime wrapper of Asgardeo JavaScript SDK Complexity/MediumIssues with the implementation complexity flagged as `Medium` Credits/30 HacktoberfestOpen for Hacktoberfest contributors. Type/Improvement Type/Task

Type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /