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

@@ -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)
);
}