Remove old configuration, API client, and redundant crypto mocks

- Deleted legacy `config` module and replaced its usage with the new runtime-validated `app.config`.
- Removed old custom Axios `apiClient` with outdated token refresh logic.
- Cleaned up redundant crypto-related mocks in storage tests and replaced them with real encryption/decryption during testing.
- Updated Jest coverage exclusions to reflect the new file structure and generated client usage.
This commit is contained in:
Felipe Cardoso
2025-10-31 23:04:53 +01:00
parent 092a82ee07
commit b4866f9100
7 changed files with 190 additions and 382 deletions

View File

@@ -6,7 +6,7 @@
import axios, { AxiosError, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';
import { useAuthStore } from '@/stores/authStore';
import { parseAPIError, type APIErrorResponse } from './errors';
import config from '@/config';
import config from '@/config/app.config';
/**
* Separate axios instance for auth endpoints