mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 10:10:56 -07:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import { describe, it, expect } from 'vitest';
|
|
import { renderOperationalGuidelines } from './snippets.js';
|
|
|
|
describe('renderOperationalGuidelines - memoryManagerEnabled', () => {
|
|
const baseOptions = {
|
|
interactive: true,
|
|
interactiveShellEnabled: false,
|
|
topicUpdateNarration: false,
|
|
memoryManagerEnabled: false,
|
|
};
|
|
|
|
it('should include standard memory tool guidance when memoryManagerEnabled is false', () => {
|
|
const result = renderOperationalGuidelines(baseOptions);
|
|
expect(result).toContain('save_memory');
|
|
expect(result).toContain('persist facts across sessions');
|
|
expect(result).not.toContain('subagent');
|
|
});
|
|
|
|
it('should include subagent memory guidance when memoryManagerEnabled is true', () => {
|
|
const result = renderOperationalGuidelines({
|
|
...baseOptions,
|
|
memoryManagerEnabled: true,
|
|
});
|
|
expect(result).toContain('save_memory');
|
|
expect(result).toContain('subagent');
|
|
expect(result).not.toContain('persistent user-related information');
|
|
});
|
|
});
|