mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 06:12:50 -07:00
fix(cli): force false for permanent tool approval in Vitest to stabilize snapshots
This commit is contained in:
@@ -3345,7 +3345,7 @@ export const SETTINGS_SCHEMA_DEFINITIONS: Record<
|
||||
export function getSettingsSchema(): SettingsSchemaType {
|
||||
// Force enablePermanentToolApproval to false in Vitest to keep snapshots stable,
|
||||
// unless explicitly overridden in tests.
|
||||
if (process.env.VITEST) {
|
||||
if (process.env['VITEST']) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const schema = JSON.parse(JSON.stringify(SETTINGS_SCHEMA));
|
||||
schema.security.properties.enablePermanentToolApproval.default = false;
|
||||
|
||||
Reference in New Issue
Block a user