mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-01-30 06:12:05 +00:00
chore: fix tests
This commit is contained in:
@@ -63,7 +63,9 @@ jest.unstable_mockModule('../../../scripts/modules/config-manager.js', () => ({
|
||||
getDebugFlag: jest.fn(() => false),
|
||||
getLogLevel: jest.fn(() => 'info'),
|
||||
isProxyEnabled: jest.fn(() => false),
|
||||
getAnonymousTelemetryEnabled: jest.fn(() => true)
|
||||
getAnonymousTelemetryEnabled: jest.fn(() => true),
|
||||
setSuppressConfigWarnings: jest.fn(),
|
||||
isConfigWarningSuppressed: jest.fn(() => false)
|
||||
}));
|
||||
|
||||
// Mock utils
|
||||
|
||||
@@ -38,7 +38,9 @@ jest.unstable_mockModule('../../../scripts/modules/utils.js', () => ({
|
||||
|
||||
jest.unstable_mockModule('../../../scripts/modules/config-manager.js', () => ({
|
||||
isProxyEnabled: jest.fn(() => false),
|
||||
getAnonymousTelemetryEnabled: jest.fn(() => true)
|
||||
getAnonymousTelemetryEnabled: jest.fn(() => true),
|
||||
setSuppressConfigWarnings: jest.fn(),
|
||||
isConfigWarningSuppressed: jest.fn(() => false)
|
||||
}));
|
||||
|
||||
// Import after mocking
|
||||
|
||||
@@ -17,7 +17,9 @@ jest.unstable_mockModule('../../../scripts/modules/utils.js', () => ({
|
||||
|
||||
jest.unstable_mockModule('../../../scripts/modules/config-manager.js', () => ({
|
||||
isProxyEnabled: jest.fn(() => false),
|
||||
getAnonymousTelemetryEnabled: jest.fn(() => true)
|
||||
getAnonymousTelemetryEnabled: jest.fn(() => true),
|
||||
setSuppressConfigWarnings: jest.fn(),
|
||||
isConfigWarningSuppressed: jest.fn(() => false)
|
||||
}));
|
||||
|
||||
// Import after mocking
|
||||
|
||||
@@ -189,7 +189,9 @@ jest.unstable_mockModule(
|
||||
getAllProviders: jest.fn(() => ['anthropic', 'openai', 'perplexity']),
|
||||
getVertexProjectId: jest.fn(() => undefined),
|
||||
getVertexLocation: jest.fn(() => undefined),
|
||||
hasCodebaseAnalysis: jest.fn(() => false)
|
||||
hasCodebaseAnalysis: jest.fn(() => false),
|
||||
setSuppressConfigWarnings: jest.fn(),
|
||||
isConfigWarningSuppressed: jest.fn(() => false)
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user