moar unit test !
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m33s

This commit is contained in:
2025-12-07 15:46:29 -08:00
parent 393c779ec4
commit 01c36e80ab
6 changed files with 18 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ vi.mock('./logger', () => ({
// 2. Mock ./apiClient to simply pass calls through to the global fetch.
vi.mock('./apiClient', () => ({
apiFetchWithAuth: (url: string, options: RequestInit) => {
apiFetch: (url: string, options: RequestInit) => {
// The base URL must match what MSW is expecting.
const fullUrl = url.startsWith('/')
? `http://localhost/api${url}`