@@ -89,67 +89,6 @@ describe('loadSettings', () => {
8989 vi . restoreAllMocks ( ) ;
9090 } ) ;
9191
92- it ( 'should load nested previewFeatures from user settings' , ( ) => {
93- const settings = {
94- general : {
95- previewFeatures : true ,
96- } ,
97- } ;
98- fs . writeFileSync ( USER_SETTINGS_PATH , JSON . stringify ( settings ) ) ;
99-
100- const result = loadSettings ( mockWorkspaceDir ) ;
101- expect ( result . general ?. previewFeatures ) . toBe ( true ) ;
102- } ) ;
103-
104- it ( 'should load nested previewFeatures from workspace settings' , ( ) => {
105- const settings = {
106- general : {
107- previewFeatures : true ,
108- } ,
109- } ;
110- const workspaceSettingsPath = path . join (
111- mockGeminiWorkspaceDir ,
112- 'settings.json' ,
113- ) ;
114- fs . writeFileSync ( workspaceSettingsPath , JSON . stringify ( settings ) ) ;
115-
116- const result = loadSettings ( mockWorkspaceDir ) ;
117- expect ( result . general ?. previewFeatures ) . toBe ( true ) ;
118- } ) ;
119-
120- it ( 'should prioritize workspace settings over user settings' , ( ) => {
121- const userSettings = {
122- general : {
123- previewFeatures : false ,
124- } ,
125- } ;
126- fs . writeFileSync ( USER_SETTINGS_PATH , JSON . stringify ( userSettings ) ) ;
127-
128- const workspaceSettings = {
129- general : {
130- previewFeatures : true ,
131- } ,
132- } ;
133- const workspaceSettingsPath = path . join (
134- mockGeminiWorkspaceDir ,
135- 'settings.json' ,
136- ) ;
137- fs . writeFileSync ( workspaceSettingsPath , JSON . stringify ( workspaceSettings ) ) ;
138-
139- const result = loadSettings ( mockWorkspaceDir ) ;
140- expect ( result . general ?. previewFeatures ) . toBe ( true ) ;
141- } ) ;
142-
143- it ( 'should handle missing previewFeatures' , ( ) => {
144- const settings = {
145- general : { } ,
146- } ;
147- fs . writeFileSync ( USER_SETTINGS_PATH , JSON . stringify ( settings ) ) ;
148-
149- const result = loadSettings ( mockWorkspaceDir ) ;
150- expect ( result . general ?. previewFeatures ) . toBeUndefined ( ) ;
151- } ) ;
152-
15392 it ( 'should load other top-level settings correctly' , ( ) => {
15493 const settings = {
15594 showMemoryUsage : true ,
0 commit comments