@@ -28,6 +28,8 @@ import {
2828 allowEditorTypeInSandbox ,
2929} from '@google/gemini-cli-core' ;
3030
31+ import { SettingPaths } from '../../config/settingPaths.js' ;
32+
3133vi . mock ( '@google/gemini-cli-core' , async ( ) => {
3234 const actual = await vi . importActual ( '@google/gemini-cli-core' ) ;
3335 return {
@@ -114,7 +116,7 @@ describe('useEditorSettings', () => {
114116
115117 expect ( mockLoadedSettings . setValue ) . toHaveBeenCalledWith (
116118 scope ,
117- 'preferredEditor' ,
119+ SettingPaths . General . PreferredEditor ,
118120 editorType ,
119121 ) ;
120122
@@ -142,7 +144,7 @@ describe('useEditorSettings', () => {
142144
143145 expect ( mockLoadedSettings . setValue ) . toHaveBeenCalledWith (
144146 scope ,
145- 'preferredEditor' ,
147+ SettingPaths . General . PreferredEditor ,
146148 undefined ,
147149 ) ;
148150
@@ -171,7 +173,7 @@ describe('useEditorSettings', () => {
171173
172174 expect ( mockLoadedSettings . setValue ) . toHaveBeenCalledWith (
173175 scope ,
174- 'preferredEditor' ,
176+ SettingPaths . General . PreferredEditor ,
175177 editorType ,
176178 ) ;
177179
@@ -201,7 +203,7 @@ describe('useEditorSettings', () => {
201203
202204 expect ( mockLoadedSettings . setValue ) . toHaveBeenCalledWith (
203205 scope ,
204- 'preferredEditor' ,
206+ SettingPaths . General . PreferredEditor ,
205207 editorType ,
206208 ) ;
207209
0 commit comments