feat: Add .taskmaster directory (#619)
This commit is contained in:
@@ -23,15 +23,27 @@ describe('Roo Files Inclusion in Package', () => {
|
||||
|
||||
// Check for Roo directory creation (using more flexible pattern matching)
|
||||
const hasRooDir = initJsContent.includes(
|
||||
"ensureDirectoryExists(path.join(targetDir, '.roo"
|
||||
"ensureDirectoryExists(path.join(targetDir, '.roo'))"
|
||||
);
|
||||
expect(hasRooDir).toBe(true);
|
||||
|
||||
// Check for .roomodes file copying
|
||||
const hasRoomodes = initJsContent.includes("copyTemplateFile('.roomodes'");
|
||||
// Check for .roomodes file copying using hardcoded path
|
||||
const hasRoomodes = initJsContent.includes(
|
||||
"path.join(targetDir, '.roomodes')"
|
||||
);
|
||||
expect(hasRoomodes).toBe(true);
|
||||
|
||||
// Check for mode-specific patterns (using more flexible pattern matching)
|
||||
// Check for local ROO_MODES definition and usage
|
||||
const hasRooModes = initJsContent.includes('ROO_MODES');
|
||||
expect(hasRooModes).toBe(true);
|
||||
|
||||
// Check for local ROO_MODES array definition
|
||||
const hasLocalRooModes = initJsContent.includes(
|
||||
"const ROO_MODES = ['architect', 'ask', 'boomerang', 'code', 'debug', 'test']"
|
||||
);
|
||||
expect(hasLocalRooModes).toBe(true);
|
||||
|
||||
// Check for mode-specific patterns (these will still be present in the local array)
|
||||
const hasArchitect = initJsContent.includes('architect');
|
||||
const hasAsk = initJsContent.includes('ask');
|
||||
const hasBoomerang = initJsContent.includes('boomerang');
|
||||
|
||||
@@ -23,23 +23,21 @@ describe('Roo Initialization Functionality', () => {
|
||||
|
||||
// Check for the line that creates .roo/rules directory
|
||||
const hasRooRulesDir = initJsContent.includes(
|
||||
"ensureDirectoryExists(path.join(targetDir, '.roo', 'rules'))"
|
||||
"ensureDirectoryExists(path.join(targetDir, '.roo/rules'))"
|
||||
);
|
||||
expect(hasRooRulesDir).toBe(true);
|
||||
|
||||
// Check for the for loop that creates mode-specific directories
|
||||
const hasRooModeLoop =
|
||||
initJsContent.includes(
|
||||
"for (const mode of ['architect', 'ask', 'boomerang', 'code', 'debug', 'test'])"
|
||||
) ||
|
||||
(initJsContent.includes('for (const mode of [') &&
|
||||
initJsContent.includes('architect') &&
|
||||
initJsContent.includes('ask') &&
|
||||
initJsContent.includes('boomerang') &&
|
||||
initJsContent.includes('code') &&
|
||||
initJsContent.includes('debug') &&
|
||||
initJsContent.includes('test'));
|
||||
// Check for the for loop that creates mode-specific directories using local ROO_MODES array
|
||||
const hasRooModeLoop = initJsContent.includes(
|
||||
'for (const mode of ROO_MODES)'
|
||||
);
|
||||
expect(hasRooModeLoop).toBe(true);
|
||||
|
||||
// Check for local ROO_MODES definition
|
||||
const hasLocalRooModes = initJsContent.includes(
|
||||
"const ROO_MODES = ['architect', 'ask', 'boomerang', 'code', 'debug', 'test']"
|
||||
);
|
||||
expect(hasLocalRooModes).toBe(true);
|
||||
});
|
||||
|
||||
test('init.js copies Roo files from assets/roocode directory', () => {
|
||||
|
||||
Reference in New Issue
Block a user