Skip to content

Set up a frontend test runner (vitest) #251

Description

@eipasteur

The frontend has no test runner. PR #236 added the first frontend test (frontend/src/services/sprintGraph.test.ts, 8 cases for extractPrs), but:

We need a real frontend test setup so that test (and future ones) actually run:

  • add vitest as a frontend devDependency
  • add frontend/vitest.config.ts that extends vite.config (needed because sprintGraph.ts imports ./api which uses import.meta.env)
  • add a test script in frontend/package.json
  • wire a frontend test step into CI
  • re-enable / confirm sprintGraph.test.ts runs

Will be needed for the upcoming UI work (#184 / #185).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions