diff --git a/tests/integration/profiles/roo-files-inclusion.test.js b/tests/integration/profiles/roo-files-inclusion.test.js index d00bf4ab..f7b714fb 100644 --- a/tests/integration/profiles/roo-files-inclusion.test.js +++ b/tests/integration/profiles/roo-files-inclusion.test.js @@ -21,8 +21,10 @@ describe('Roo Files Inclusion in Package', () => { const rooJsPath = path.join(process.cwd(), 'scripts', 'profiles', 'roo.js'); const rooJsContent = fs.readFileSync(rooJsPath, 'utf8'); - // Check for the main handler function - expect(rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)')).toBe(true); + // Check for the main handler function + expect( + rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)') + ).toBe(true); // Check for general recursive copy of assets/roocode expect( @@ -30,9 +32,7 @@ describe('Roo Files Inclusion in Package', () => { ).toBe(true); // Check for updated path handling - expect( - rooJsContent.includes("path.join(assetsDir, 'roocode')") - ).toBe(true); + expect(rooJsContent.includes("path.join(assetsDir, 'roocode')")).toBe(true); // Check for .roomodes file copying logic (source and destination paths) expect(rooJsContent.includes("path.join(sourceDir, '.roomodes')")).toBe( diff --git a/tests/integration/profiles/roo-init-functionality.test.js b/tests/integration/profiles/roo-init-functionality.test.js index 8766d04f..8b6bdc6d 100644 --- a/tests/integration/profiles/roo-init-functionality.test.js +++ b/tests/integration/profiles/roo-init-functionality.test.js @@ -11,14 +11,16 @@ describe('Roo Profile Initialization Functionality', () => { rooProfileContent = fs.readFileSync(rooJsPath, 'utf8'); }); - test('roo.js profile ensures Roo directory structure via onAddRulesProfile', () => { - // Check if onAddRulesProfile function exists - expect(rooProfileContent).toContain('onAddRulesProfile(targetDir, assetsDir)'); + test('roo.js profile ensures Roo directory structure via onAddRulesProfile', () => { + // Check if onAddRulesProfile function exists + expect(rooProfileContent).toContain( + 'onAddRulesProfile(targetDir, assetsDir)' + ); - // Check for the general copy of assets/roocode which includes .roo base structure - expect(rooProfileContent).toContain( - "const sourceDir = path.join(assetsDir, 'roocode');" - ); + // Check for the general copy of assets/roocode which includes .roo base structure + expect(rooProfileContent).toContain( + "const sourceDir = path.join(assetsDir, 'roocode');" + ); expect(rooProfileContent).toContain( 'copyRecursiveSync(sourceDir, targetDir);' ); @@ -34,8 +36,10 @@ describe('Roo Profile Initialization Functionality', () => { ); }); - test('roo.js profile copies .roomodes file via onAddRulesProfile', () => { - expect(rooProfileContent).toContain('onAddRulesProfile(targetDir, assetsDir)'); + test('roo.js profile copies .roomodes file via onAddRulesProfile', () => { + expect(rooProfileContent).toContain( + 'onAddRulesProfile(targetDir, assetsDir)' + ); // Check for the specific .roomodes copy logic expect(rooProfileContent).toContain( @@ -49,8 +53,10 @@ describe('Roo Profile Initialization Functionality', () => { ); }); - test('roo.js profile copies mode-specific rule files via onAddRulesProfile', () => { - expect(rooProfileContent).toContain('onAddRulesProfile(targetDir, assetsDir)'); + test('roo.js profile copies mode-specific rule files via onAddRulesProfile', () => { + expect(rooProfileContent).toContain( + 'onAddRulesProfile(targetDir, assetsDir)' + ); expect(rooProfileContent).toContain('for (const mode of ROO_MODES)'); // Check for the specific mode rule file copy logic diff --git a/tests/integration/profiles/rules-files-inclusion.test.js b/tests/integration/profiles/rules-files-inclusion.test.js index 5ae262ab..cd690ba9 100644 --- a/tests/integration/profiles/rules-files-inclusion.test.js +++ b/tests/integration/profiles/rules-files-inclusion.test.js @@ -40,8 +40,10 @@ describe('Rules Files Inclusion in Package', () => { const rooJsPath = path.join(process.cwd(), 'scripts', 'profiles', 'roo.js'); const rooJsContent = fs.readFileSync(rooJsPath, 'utf8'); - // Check for the main handler function - expect(rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)')).toBe(true); + // Check for the main handler function + expect( + rooJsContent.includes('onAddRulesProfile(targetDir, assetsDir)') + ).toBe(true); // Check for general recursive copy of assets/roocode expect( @@ -49,9 +51,7 @@ describe('Rules Files Inclusion in Package', () => { ).toBe(true); // Check for updated path handling - expect( - rooJsContent.includes("path.join(assetsDir, 'roocode')") - ).toBe(true); + expect(rooJsContent.includes("path.join(assetsDir, 'roocode')")).toBe(true); // Check for .roomodes file copying logic (source and destination paths) expect(rooJsContent.includes("path.join(sourceDir, '.roomodes')")).toBe(