Skip to content

Add a render test for the QuestionTypes component (src/components/assessment/QuestionTypes.tsx) #1450

Description

@RUKAYAT-CODER

Overview

The component src/components/assessment/QuestionTypes.tsx has no unit/render test. A lightweight React Testing Library test documents its rendering contract and guards against regressions.

Specifications

Features:

  • The component has a render test covering its primary states.

Tasks:

  • Add src/components/assessment/__tests__/QuestionTypes.test.tsx using React Testing Library: render the component with representative props, assert key visible output, and cover one conditional/interaction path if applicable.
  • Mock any hooks/services the component depends on.

Impacted Files:

  • src/components/assessment/__tests__/QuestionTypes.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