Skip to content

feat: ✨ Integrate neverthrow for error handling and enhance GhinClient methods#33

Merged
n8io merged 4 commits into
mainfrom
feat/test-coverage
Jul 5, 2025
Merged

feat: ✨ Integrate neverthrow for error handling and enhance GhinClient methods#33
n8io merged 4 commits into
mainfrom
feat/test-coverage

Conversation

@n8io

@n8io n8io commented Jul 5, 2025

Copy link
Copy Markdown
Owner

No description provided.

n8io added 4 commits July 2, 2025 21:40
- Added .DS_Store and .data/ to .gitignore for better file management.
- Modified validation message in schemaCourseSearchRequest for clarity.
- Enhanced schemaCourseDetailsRequest to include default value for include_altered_tees.
…ache client

- Introduced Vitest as the testing framework with configuration for coverage reporting.
- Created unit tests for GhinClient, validating its methods and constructor behavior.
- Added tests for InMemoryCacheClient to ensure correct value storage and retrieval.
- Implemented validation tests for cache client and client config schemas.
- Established validation tests for various data types including string, number, boolean, and handicap.
- Added "type": "module" to package.json for ES module support.
- Configured Vitest to target Node 18 in vitest.config.ts.
- Updated RequestClient tests to include cache in the configuration and added type annotations for ZodSchema.
…t methods

- Added the `neverthrow` library to manage error handling in GhinClient methods.
- Refactored methods to return `Result` types, improving error management and clarity.
- Updated error handling in various methods to throw specific errors for better debugging.
- Enhanced test coverage for error handling scenarios in RequestClient and GhinClient.
@n8io
n8io force-pushed the feat/test-coverage branch from 8abcb26 to e2ffedc Compare July 5, 2025 18:06
@n8io
n8io merged commit 9729d83 into main Jul 5, 2025
1 check passed
@n8io
n8io deleted the feat/test-coverage branch July 5, 2025 18:07
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