test: add comprehensive test coverage for caching library#5
Merged
Conversation
- Add dedicated test file for SyncCache decorator with 12 tests - Add test file for JSONStringifyKeyStrategy with 17 tests - Expand MemoryStorage tests from 1 to 13 tests (clear, edge cases) - Expand FsJsonStorage tests from 3 to 17 tests (persistence, edge cases) - Expand ExpirationStrategy tests from 4 to 25 tests (TTL, lazy/eager) - Expand Cache decorator tests with DISABLE_CACHE_DECORATOR and error handling - Expand MultiCache decorator tests with proper assertions and edge cases Test count increased from 45 to 138 tests total.
- Create CLAUDE.md with development guidelines - Document build, test, lint, and format commands - Fix prettier formatting in json.stringify.strategy.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test count increased from 45 to 138 tests total.