Skip to content

chore(test): Set up Vitest test infrastructure for web/ - #202

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
Pallavikumarimdb:test/vitest-test-infrastructure-for-web
Jun 9, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
Pallavikumarimdb:test/vitest-test-infrastructure-for-web

Conversation

@Pallavikumarimdb

Copy link
Copy Markdown
Contributor

Summary

Set up Vitest in the web/ package for the Next.js 16 + TypeScript project.

Changes

  • Added vitest and jsdom as devDependencies in web/package.json
  • Added test and test:watch scripts to web/package.json
  • Created web/vitest.config.ts with jsdom environment and @/ path alias
  • Added web/src/smoke.test.ts smoke test
  • Added Vitest test step to CI workflow (.github/workflows/ci.yml)
  • Removed conflicting package-lock.json

Acceptance

  • cd web && yarn test runs Vitest and the smoke test passes
  • The @/ alias resolves in test files
  • CI runs the test step on pull requests

Closes: #195

@gkhngyk
gkhngyk merged commit 934e3a2 into ansvisor:main Jun 9, 2026
1 check 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 web/

2 participants