Skip to content

Add a render test for the loadingSkeletons component (src/components/loadingSkeletons.tsx) #1201

Description

@RUKAYAT-CODER

Overview

The component src/components/loadingSkeletons.tsx has no render/unit test. A lightweight React Native Testing Library test documents its rendering contract and protects it from regressions.

Specifications

Features:

  • The component has a render test covering its primary state(s).

Tasks:

  • Add src/components/__tests__/loadingSkeletons.test.tsx that renders the component with representative props, asserts key visible output, and covers one conditional/interaction path if applicable.
  • Mock any hooks/services/navigation the component depends on.

Impacted Files:

  • src/components/__tests__/loadingSkeletons.test.tsx

Acceptance Criteria

  • A passing render test exists for the component and asserts meaningful output.
  • All the CI passes
  • Star the repo

Activity

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

    good first issueGood for newcomerstestAdds or improves tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions