Skip to content

chore(test): set up Vitest test infrastructure for server/ #242

Closed

Description

@gkhngyk

Summary

The web/ package has Vitest wired up (#195) and a growing set of unit tests (#196, #198, the insights/prompts grouping tests). The server/ package has no test runner at all — no test script, no Vitest/Jest dependency, and no test files.

That gap blocks every server-side unit test we'd want to write (e.g. the pure parsing/scoring helpers in server/src/lib/), and it's the missing prerequisite behind the CI test job tracked in #125.

Suggested fix

Mirror the web setup from #195 for server/:

  • Add vitest as a dev dependency in server/package.json.
  • Add a test script (and a test:watch if helpful).
  • Add a minimal vitest.config if needed (the server is plain ESM Node, no bundler aliases required).
  • Include one trivial smoke test so the runner has something green to execute, or land it together with the first real test (see the follow-up issue).

No application code changes — this is tooling only.

Follow-ups this unblocks

Activity

  1. added
    enhancement
    good first issue
    on Jun 12, 2026
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

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions