moar unit test !
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m33s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m33s
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user