change roo boomerang to orchestrator; update tests that don't use modes

This commit is contained in:
Joe Danziger
2025-06-12 01:45:43 -04:00
parent f97e1732f1
commit b7333bbd1a
7 changed files with 25 additions and 62 deletions

View File

@@ -90,7 +90,7 @@ describe('Roo Files Inclusion in Package', () => {
const expectedModes = [
'architect',
'ask',
'boomerang',
'orchestrator',
'code',
'debug',
'test'

View File

@@ -29,11 +29,8 @@ describe('Cursor Integration', () => {
// Spy on fs methods
jest.spyOn(fs, 'writeFileSync').mockImplementation(() => {});
jest.spyOn(fs, 'readFileSync').mockImplementation((filePath) => {
if (filePath.toString().includes('.cursormodes')) {
return 'Existing cursormodes content';
}
if (filePath.toString().includes('-rules')) {
return 'Existing mode rules content';
if (filePath.toString().includes('mcp.json')) {
return JSON.stringify({ mcpServers: {} }, null, 2);
}
return '{}';
});
@@ -58,29 +55,10 @@ describe('Cursor Integration', () => {
// Create rules directory
fs.mkdirSync(path.join(tempDir, '.cursor', 'rules'), { recursive: true });
// Create mode-specific rule directories
const cursorModes = [
'architect',
'ask',
'boomerang',
'code',
'debug',
'test'
];
for (const mode of cursorModes) {
fs.mkdirSync(path.join(tempDir, '.cursor', `rules-${mode}`), {
recursive: true
});
fs.writeFileSync(
path.join(tempDir, '.cursor', `rules-${mode}`, `${mode}-rules`),
`Content for ${mode} rules`
);
}
// Copy .cursormodes file
// Create MCP config file
fs.writeFileSync(
path.join(tempDir, '.cursormodes'),
'Cursormodes file content'
path.join(tempDir, '.cursor', 'mcp.json'),
JSON.stringify({ mcpServers: {} }, null, 2)
);
}

View File

@@ -59,7 +59,14 @@ describe('Roo Integration', () => {
fs.mkdirSync(path.join(tempDir, '.roo', 'rules'), { recursive: true });
// Create mode-specific rule directories
const rooModes = ['architect', 'ask', 'boomerang', 'code', 'debug', 'test'];
const rooModes = [
'architect',
'ask',
'orchestrator',
'code',
'debug',
'test'
];
for (const mode of rooModes) {
fs.mkdirSync(path.join(tempDir, '.roo', `rules-${mode}`), {
recursive: true
@@ -102,7 +109,7 @@ describe('Roo Integration', () => {
{ recursive: true }
);
expect(fs.mkdirSync).toHaveBeenCalledWith(
path.join(tempDir, '.roo', 'rules-boomerang'),
path.join(tempDir, '.roo', 'rules-orchestrator'),
{ recursive: true }
);
expect(fs.mkdirSync).toHaveBeenCalledWith(
@@ -133,7 +140,7 @@ describe('Roo Integration', () => {
expect.any(String)
);
expect(fs.writeFileSync).toHaveBeenCalledWith(
path.join(tempDir, '.roo', 'rules-boomerang', 'boomerang-rules'),
path.join(tempDir, '.roo', 'rules-orchestrator', 'orchestrator-rules'),
expect.any(String)
);
expect(fs.writeFileSync).toHaveBeenCalledWith(

View File

@@ -29,11 +29,8 @@ describe('Windsurf Integration', () => {
// Spy on fs methods
jest.spyOn(fs, 'writeFileSync').mockImplementation(() => {});
jest.spyOn(fs, 'readFileSync').mockImplementation((filePath) => {
if (filePath.toString().includes('.windsurfmodes')) {
return 'Existing windsurfmodes content';
}
if (filePath.toString().includes('-rules')) {
return 'Existing mode rules content';
if (filePath.toString().includes('mcp.json')) {
return JSON.stringify({ mcpServers: {} }, null, 2);
}
return '{}';
});
@@ -58,29 +55,10 @@ describe('Windsurf Integration', () => {
// Create rules directory
fs.mkdirSync(path.join(tempDir, '.windsurf', 'rules'), { recursive: true });
// Create mode-specific rule directories
const windsurfModes = [
'architect',
'ask',
'boomerang',
'code',
'debug',
'test'
];
for (const mode of windsurfModes) {
fs.mkdirSync(path.join(tempDir, '.windsurf', `rules-${mode}`), {
recursive: true
});
fs.writeFileSync(
path.join(tempDir, '.windsurf', `rules-${mode}`, `${mode}-rules`),
`Content for ${mode} rules`
);
}
// Copy .windsurfmodes file
// Create MCP config file
fs.writeFileSync(
path.join(tempDir, '.windsurfmodes'),
'Windsurfmodes file content'
path.join(tempDir, '.windsurf', 'mcp.json'),
JSON.stringify({ mcpServers: {} }, null, 2)
);
}