Skip to content

Commit

Permalink
feat: extend AxcacheOptions with full Axios config support and add co…
Browse files Browse the repository at this point in the history
…mprehensive tests

- Extended AxcacheOptions interface to include all AxiosRequestConfig options
- Added comprehensive test suite covering all README.md examples
- Replaced mock API endpoints with JSONPlaceholder for reliable testing
- Updated dependencies to latest stable versions
- Added ts-jest and axios-mock-adapter for improved testing capabilities
  • Loading branch information
Sasamous committed Nov 17, 2024
1 parent 456644a commit 61deaba
Show file tree
Hide file tree
Showing 4 changed files with 460 additions and 112 deletions.
2 changes: 1 addition & 1 deletion lib/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';

export interface AxcacheOptions {
export interface AxcacheOptions extends AxiosRequestConfig {
stdTTL?: number;
maxSizeMB?: number;
axios?: AxiosInstance;
Expand Down
Loading

0 comments on commit 61deaba

Please sign in to comment.