-
Notifications
You must be signed in to change notification settings - Fork 8
tests for redis-client pkg #2287
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive unit tests for the redis-client package, covering the core functionality for managing Redis connections and indexes.
Key Changes:
- Added unit tests for Redis index creation and deletion operations
- Added unit tests for Redis client connection and index setup utilities
- Implemented test coverage for hash-based index change detection
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/redis-client/src/tests/redisIndex.unit.test.ts | Tests for createRedisIndex and deleteRedisIndex functions including hash-based change detection and index lifecycle management |
| packages/redis-client/src/tests/redisClient.unit.test.ts | Tests for connectToRedis and setupRedisIndex functions including connection state management, error handling, and logging |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add comprehensive unit tests for connectToRedis function - Test connection state management, error handling, and logging - Add unit tests for setupRedisIndex function - All tests use proper mocking of redis client and logger
- Add test:unit script for running unit tests - Update test script to run both unit and integration tests - Use TEST_TYPE environment variable for test filtering
…nt-package' into fix/test-redis-client-package
- Add @testcontainers/redis and testcontainers dependencies - Update testRedisConnection to use testcontainers Redis container - Add comprehensive integration tests for redisClient - Enhance redisIndex integration tests with additional coverage
No description provided.