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
Overview
The component
src/components/assessment/QuestionTypes.tsxhas no unit/render test. A lightweight React Testing Library test documents its rendering contract and guards against regressions.Specifications
Features:
Tasks:
src/components/assessment/__tests__/QuestionTypes.test.tsxusing React Testing Library: render the component with representative props, assert key visible output, and cover one conditional/interaction path if applicable.Impacted Files:
src/components/assessment/__tests__/QuestionTypes.test.tsxAcceptance Criteria