Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for API and updater modules #98

Merged
merged 2 commits into from
Mar 8, 2025
Merged

Conversation

ruchernchong
Copy link
Member

Summary

  • Added unit tests for previously uncovered API lib functions: getCarsByFuelType, getLatestMonth, and getUniqueMonths
  • Added unit tests for previously uncovered updater utilities: downloadFile, processCSV, redisCache, and createUpdateTask
  • Improved overall test coverage and reliability

Test plan

  • All test suites now pass with pnpm test
  • Unit tests provide good coverage of edge cases and error handling

🤖 Generated with Claude Code

- Added tests for getCarsByFuelType, getLatestMonth, and getUniqueMonths API lib functions
- Added tests for downloadFile, processCSV, redisCache, and createUpdateTask updater utilities
- Improved test coverage across the codebase

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
@ruchernchong ruchernchong linked an issue Mar 8, 2025 that may be closed by this pull request
@ruchernchong ruchernchong merged commit 0e2696a into main Mar 8, 2025
8 checks passed
@ruchernchong ruchernchong deleted the 93-add-unit-testing branch March 8, 2025 07:28
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.

Add unit testing
1 participant