mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-01-30 06:12:05 +00:00
feat: Added GEMINI.md asset file for init-ing task master-ai for gemi… (#1326)
Co-authored-by: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,8 @@ describe('Gemini Profile Initialization Functionality', () => {
|
||||
expect(geminiProfileContent).toContain("rulesDir: '.'"); // non-default
|
||||
expect(geminiProfileContent).toContain("mcpConfigName: 'settings.json'"); // non-default
|
||||
expect(geminiProfileContent).toContain('includeDefaultRules: false'); // non-default
|
||||
expect(geminiProfileContent).toContain("'AGENTS.md': 'GEMINI.md'");
|
||||
expect(geminiProfileContent).toContain("'AGENT.md': 'AGENTS.md'");
|
||||
expect(geminiProfileContent).toContain("'GEMINI.md': 'GEMINI.md'");
|
||||
|
||||
// Check the final computed properties on the profile object
|
||||
expect(geminiProfile.profileName).toBe('gemini');
|
||||
@@ -38,7 +39,8 @@ describe('Gemini Profile Initialization Functionality', () => {
|
||||
expect(geminiProfile.mcpConfigName).toBe('settings.json');
|
||||
expect(geminiProfile.mcpConfigPath).toBe('.gemini/settings.json'); // computed
|
||||
expect(geminiProfile.includeDefaultRules).toBe(false);
|
||||
expect(geminiProfile.fileMap['AGENTS.md']).toBe('GEMINI.md');
|
||||
expect(geminiProfile.fileMap['AGENT.md']).toBe('AGENTS.md');
|
||||
expect(geminiProfile.fileMap['GEMINI.md']).toBe('GEMINI.md');
|
||||
});
|
||||
|
||||
test('gemini.js has no lifecycle functions', () => {
|
||||
|
||||
@@ -16,7 +16,8 @@ describe('Rule Transformer - Gemini Profile', () => {
|
||||
expect(geminiProfile.mcpConfigPath).toBe('.gemini/settings.json');
|
||||
expect(geminiProfile.includeDefaultRules).toBe(false);
|
||||
expect(geminiProfile.fileMap).toEqual({
|
||||
'AGENTS.md': 'GEMINI.md'
|
||||
'AGENT.md': 'AGENTS.md',
|
||||
'GEMINI.md': 'GEMINI.md'
|
||||
});
|
||||
});
|
||||
|
||||
@@ -41,15 +42,17 @@ describe('Rule Transformer - Gemini Profile', () => {
|
||||
test('should have correct file mapping', () => {
|
||||
const geminiProfile = getRulesProfile('gemini');
|
||||
expect(geminiProfile.fileMap).toEqual({
|
||||
'AGENTS.md': 'GEMINI.md'
|
||||
'AGENT.md': 'AGENTS.md',
|
||||
'GEMINI.md': 'GEMINI.md'
|
||||
});
|
||||
});
|
||||
|
||||
test('should place GEMINI.md in root directory', () => {
|
||||
test('should place AGENTS.md and GEMINI.md in root directory', () => {
|
||||
const geminiProfile = getRulesProfile('gemini');
|
||||
// rulesDir determines where fileMap files go
|
||||
expect(geminiProfile.rulesDir).toBe('.');
|
||||
// This means AGENTS.md -> GEMINI.md will be placed in the root
|
||||
// This means both AGENTS.md and GEMINI.md will be placed in the root
|
||||
// Both files are auto-loaded by Gemini CLI
|
||||
});
|
||||
|
||||
test('should place settings.json in .gemini directory', () => {
|
||||
|
||||
Reference in New Issue
Block a user