mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
fix(settings): use union merge for excludeTools (#7842)
This commit is contained in:
@@ -428,8 +428,11 @@ describe('Settings Loading and Merging', () => {
|
||||
'/workspace/dir',
|
||||
]);
|
||||
|
||||
// Verify excludeTools are overwritten by workspace
|
||||
expect(settings.merged.tools?.exclude).toEqual(['workspace-tool']);
|
||||
// Verify excludeTools are concatenated and de-duped
|
||||
expect(settings.merged.tools?.exclude).toEqual([
|
||||
'user-tool',
|
||||
'workspace-tool',
|
||||
]);
|
||||
|
||||
// Verify excludedProjectEnvVars are concatenated and de-duped
|
||||
expect(settings.merged.advanced?.excludedEnvVars).toEqual(
|
||||
|
||||
Reference in New Issue
Block a user