chore: fix broken tests
This commit is contained in:
@@ -99,7 +99,8 @@ jest.unstable_mockModule(
|
|||||||
jest.unstable_mockModule(
|
jest.unstable_mockModule(
|
||||||
'../../../../../scripts/modules/config-manager.js',
|
'../../../../../scripts/modules/config-manager.js',
|
||||||
() => ({
|
() => ({
|
||||||
getDefaultPriority: jest.fn(() => 'medium')
|
getDefaultPriority: jest.fn(() => 'medium'),
|
||||||
|
isClaudeCode: jest.fn(() => false)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,8 @@ jest.unstable_mockModule(
|
|||||||
// Additional functions
|
// Additional functions
|
||||||
getAllProviders: jest.fn(() => ['anthropic', 'openai', 'perplexity']),
|
getAllProviders: jest.fn(() => ['anthropic', 'openai', 'perplexity']),
|
||||||
getVertexProjectId: jest.fn(() => undefined),
|
getVertexProjectId: jest.fn(() => undefined),
|
||||||
getVertexLocation: jest.fn(() => undefined)
|
getVertexLocation: jest.fn(() => undefined),
|
||||||
|
isClaudeCode: jest.fn(() => false)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,8 @@ jest.unstable_mockModule(
|
|||||||
jest.unstable_mockModule(
|
jest.unstable_mockModule(
|
||||||
'../../../../../scripts/modules/config-manager.js',
|
'../../../../../scripts/modules/config-manager.js',
|
||||||
() => ({
|
() => ({
|
||||||
getDebugFlag: jest.fn(() => false)
|
getDebugFlag: jest.fn(() => false),
|
||||||
|
isClaudeCode: jest.fn(() => false)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ jest.unstable_mockModule(
|
|||||||
'../../../../../scripts/modules/config-manager.js',
|
'../../../../../scripts/modules/config-manager.js',
|
||||||
() => ({
|
() => ({
|
||||||
getDebugFlag: jest.fn(() => false),
|
getDebugFlag: jest.fn(() => false),
|
||||||
isApiKeySet: jest.fn(() => true)
|
isApiKeySet: jest.fn(() => true),
|
||||||
|
isClaudeCode: jest.fn(() => false)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ jest.unstable_mockModule('../../../../../scripts/modules/ui.js', () => ({
|
|||||||
jest.unstable_mockModule(
|
jest.unstable_mockModule(
|
||||||
'../../../../../scripts/modules/config-manager.js',
|
'../../../../../scripts/modules/config-manager.js',
|
||||||
() => ({
|
() => ({
|
||||||
getDebugFlag: jest.fn(() => false)
|
getDebugFlag: jest.fn(() => false),
|
||||||
|
isClaudeCode: jest.fn(() => false)
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user