test: update mocks to use unified config structure
- Update mailgun service test mock to use unifiedConfig.app.baseUrl - Update database service test mock to use unifiedConfig.app.baseUrl - Ensures test mocks reflect actual unified configuration structure - Maintains test compatibility after config system consolidation
This commit is contained in:
@@ -12,10 +12,12 @@ jest.mock('../mailgun.config', () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
// Mock the app config
|
// Mock the app config
|
||||||
jest.mock('../../config/app.config', () => ({
|
jest.mock('../../config/unified.config', () => ({
|
||||||
appConfig: {
|
unifiedConfig: {
|
||||||
|
app: {
|
||||||
baseUrl: 'http://localhost:3000',
|
baseUrl: 'http://localhost:3000',
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Mock global fetch and related APIs
|
// Mock global fetch and related APIs
|
||||||
|
|||||||
@@ -6,10 +6,12 @@ jest.mock('../../../utils/env', () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
// Mock the app config to prevent import issues
|
// Mock the app config to prevent import issues
|
||||||
jest.mock('../../../config/app.config', () => ({
|
jest.mock('../../../config/unified.config', () => ({
|
||||||
appConfig: {
|
unifiedConfig: {
|
||||||
|
app: {
|
||||||
baseUrl: 'http://localhost:3000',
|
baseUrl: 'http://localhost:3000',
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Create mock strategy methods object
|
// Create mock strategy methods object
|
||||||
|
|||||||
Reference in New Issue
Block a user