Skip to content

[QUALITY] No test suite configured for high-velocity component library #85

@Shooksie

Description

@Shooksie

Summary

The design-system repository has no test suite configured, despite 28 PRs being merged in the last 7 days.

Details

  • No test scripts in package.json
  • No Jest, Vitest, or other test runner found
  • No test files detected in src/

Risk

With 28 PRs/week, the absence of automated tests creates significant risk of undetected regressions. TypeScript type checking passes, but it does not catch behavior/logic regressions.

Recommended Fix

  1. Add Vitest (recommended for component libraries) or Jest:
    npm install --save-dev vitest @testing-library/react @testing-library/jest-dom
    
  2. Add a test script to package.json
  3. Write unit tests for core components
  4. Add test coverage requirements for new PRs (e.g., --coverage in CI)

Context

Identified in quality audit on 2026-03-19.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1-highHigh priority - address soonbugSomething isn't workingchoreMaintenance or infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions