-
Notifications
You must be signed in to change notification settings - Fork 0
CodeRabbit Generated Unit Tests: Add comprehensive test suite with documentation and package configuration #7
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
Conversation
…cumentation and package configuration
|
Important Review skippedCodeRabbit bot authored PR detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
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.
No need to add summary and stats here. Just outline how to add testing, how to check coverage, and if there's a roadmap on the testing side
| }); | ||
| beforeEach(() => { | ||
| mockRedis = new MockRedis(); | ||
| // Note: In real tests, you'd use a test Redis instance or redis-mock |
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.
Will this run? We're just throwing some random URL, will Redis know to initialize?
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.
We should store the mockAdapter somewhere else so as not to define it in every unit test
EggerMarc
left a comment
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.
Need to add a general mock adapter / cache / ws generator function to share across unit tests.
Unit test generation was requested by @EggerMarc.
The following files were modified:
TESTING.mdTEST_SUMMARY.mdpackage.jsonpackage/__tests__/adapters/cache.test.tspackage/__tests__/adapters/index.test.tspackage/__tests__/adapters/queries/get-usage.test.tspackage/__tests__/adapters/queries/insert-usage.test.tspackage/__tests__/adapters/queries/reset-usage.test.tspackage/__tests__/realtime/usage-tracker.test.tspackage/__tests__/realtime/websocket-server.test.tspackage/__tests__/utils.test.ts