Skip to content

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

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
Pallavikumarimdb:test/set-up-Vitest-test-infrastructure-for-server
Jun 13, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
Pallavikumarimdb:test/set-up-Vitest-test-infrastructure-for-server

Conversation

@Pallavikumarimdb

Copy link
Copy Markdown
Contributor

Summary

Resolves #242. Sets up Vitest test runner infrastructure for the server/ package, mirroring the existing setup in the web/ package.

Proposed Changes

  • Added vitest as a devDependency in server/package.json
  • Configured test and test:watch scripts in server/package.json
  • Created a minimal config in server/vitest.config.js targeting src/**/*.test.js
  • Added a smoke test in server/src/lib/languages.test.js to ensure the runner executes successfully

Related issue

Closes #242

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@Pallavikumarimdb
Pallavikumarimdb marked this pull request as ready for review June 12, 2026 18:03

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified locally: vitest 3.2.6 (matches web), 3/3 smoke tests pass, eslint + prettier clean, vitest.config.js minimal and correct. package-lock.json change is correct to include — server uses npm and the lockfile is committed; npm install confirms it's in sync, and the -47 lines are just npm dedupe of pm2's nested deps (no real package dropped). Pure dev-tooling, no runtime code touched. Thanks!

@gkhngyk
gkhngyk merged commit a222bf2 into ansvisor:main Jun 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants