Skip to content

feat(test): add Vitest framework with unit tests#23

Merged
rprabhat merged 1 commit into
masterfrom
feat/test-framework
Apr 26, 2026
Merged

feat(test): add Vitest framework with unit tests#23
rprabhat merged 1 commit into
masterfrom
feat/test-framework

Conversation

@rprabhat
Copy link
Copy Markdown
Collaborator

Summary

  • Add Vitest + Testing Library for unit testing
  • 12 passing tests for calculations.ts (SMA, EMA, metrics)
  • Barrel exports in src/index.ts

Changes

  • vitest.config.ts - jsdom environment
  • src/test/setup.ts - React Testing Library
  • src/utils/calculations.test.ts - 12 unit tests
  • src/index.ts - barrel exports

Test Results

✓ 12 tests passing
✓ Build: 504KB JS / 158KB gzip

- Install Vitest + Testing Library
- Add vitest.config.ts with jsdom environment
- Add test/setup.ts with React Testing Library
- Add calculations.test.ts: 12 tests for SMA/EMA/metrics
- Add barrel exports src/index.ts for cleaner imports
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
qullamaggie Building Building Preview, Comment Apr 26, 2026 10:13pm

@rprabhat rprabhat merged commit 54c1018 into master Apr 26, 2026
7 of 8 checks passed
@rprabhat rprabhat deleted the feat/test-framework branch April 26, 2026 22:13
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.

1 participant