Skip to content

test(tools): add unit tests for isTruthy and isObject #42636

Description

@muditjain2204
  • Target Files: isTruthy.ts and isObject.ts
  • Task: Add tests verifying type-guard behavior on primitives, arrays, null/undefined, functions, and objects.
Image Image

Activity

  1. CoderNasim2023 commented on Oct 8, 2026

    @CoderNasim2023

    Hi @muditjain2204 I'd like to work on this issue. I'll add the unit test files (isObject.spec.ts and isTruthy.spec.ts) covering type-guard behavior across primitives, functions, arrays, objects, null, and undefined. Can i work on it ?

  2. CoderNasim2023 commented on Oct 8, 2026

    @CoderNasim2023

    Hi @muditjain2204 @NinjaOP241 I noticed PR #42648 was opened for this. However, it seems that miss a few key type-guard cases for isTruthy and isObject (e.g., [insert specific missing edge case, e.g., handling of NaN, empty objects, functions, or Symbols])

    I have unit tests ready covering all primitive, null/undefined, array, function, and object edge cases as outlined in the issue description. If needed, I’d be happy to submit a complete PR .

  3. muditjain2204 commented on Oct 8, 2026

    @muditjain2204
    Author

    @CoderNasim2023 and @NinjaOP241 iam already working on this issue
    and will generating pr in a while

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurePull requests that introduces new feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions