Skip to content

[Good First Issue] Add frontend unit tests with Vitest + React Testing Library #9

@Oshgig

Description

@Oshgig

Overview

The frontend currently has zero tests. We need a basic test suite so external contributors can refactor UI components safely.

Scope

  • Set up and in
  • Write at least one test per page:
    • — renders without crashing, displays mock run data
    • — renders list of runs, handles empty state
    • — form submission triggers API call
    • — renders alerts with severity filters
  • Add script to
  • Ensure tests run in CI ( already calls )

Acceptance Criteria

  • passes with at least 4 test files
  • All tests run in GitHub Actions CI

Resources

  • — React app with Vite + Tailwind
  • — existing CI workflow

Difficulty: Beginner-friendly
Labels: , ,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions