move profiles to /src
This commit is contained in:
@@ -7,7 +7,7 @@ describe('Claude Profile Initialization Functionality', () => {
|
||||
beforeAll(() => {
|
||||
const claudeJsPath = path.join(
|
||||
process.cwd(),
|
||||
'scripts',
|
||||
'src',
|
||||
'profiles',
|
||||
'claude.js'
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('Cline Profile Initialization Functionality', () => {
|
||||
beforeAll(() => {
|
||||
const clineJsPath = path.join(
|
||||
process.cwd(),
|
||||
'scripts',
|
||||
'src',
|
||||
'profiles',
|
||||
'cline.js'
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('Codex Profile Initialization Functionality', () => {
|
||||
beforeAll(() => {
|
||||
const codexJsPath = path.join(
|
||||
process.cwd(),
|
||||
'scripts',
|
||||
'src',
|
||||
'profiles',
|
||||
'codex.js'
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('Cursor Profile Initialization Functionality', () => {
|
||||
beforeAll(() => {
|
||||
const cursorJsPath = path.join(
|
||||
process.cwd(),
|
||||
'scripts',
|
||||
'src',
|
||||
'profiles',
|
||||
'cursor.js'
|
||||
);
|
||||
|
||||
@@ -18,7 +18,7 @@ describe('Roo Files Inclusion in Package', () => {
|
||||
|
||||
test('roo.js profile contains logic for Roo directory creation and file copying', () => {
|
||||
// Read the roo.js profile file
|
||||
const rooJsPath = path.join(process.cwd(), 'scripts', 'profiles', 'roo.js');
|
||||
const rooJsPath = path.join(process.cwd(), 'src', 'profiles', 'roo.js');
|
||||
const rooJsContent = fs.readFileSync(rooJsPath, 'utf8');
|
||||
|
||||
// Check for the main handler function
|
||||
@@ -55,10 +55,10 @@ describe('Roo Files Inclusion in Package', () => {
|
||||
)
|
||||
).toBe(true);
|
||||
|
||||
// Check for import of ROO_MODES from profiles.js
|
||||
// Check for import of ROO_MODES from profiles.js instead of local definition
|
||||
expect(
|
||||
rooJsContent.includes(
|
||||
"import { ROO_MODES } from '../../src/constants/profiles.js'"
|
||||
"import { ROO_MODES } from '../constants/profiles.js'"
|
||||
)
|
||||
).toBe(true);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('Roo Profile Initialization Functionality', () => {
|
||||
|
||||
beforeAll(() => {
|
||||
// Read the roo.js profile file content once for all tests
|
||||
const rooJsPath = path.join(process.cwd(), 'scripts', 'profiles', 'roo.js');
|
||||
const rooJsPath = path.join(process.cwd(), 'src', 'profiles', 'roo.js');
|
||||
rooProfileContent = fs.readFileSync(rooJsPath, 'utf8');
|
||||
});
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('Roo Profile Initialization Functionality', () => {
|
||||
|
||||
// Check for import of ROO_MODES from profiles.js instead of local definition
|
||||
expect(rooProfileContent).toContain(
|
||||
"import { ROO_MODES } from '../../src/constants/profiles.js';"
|
||||
"import { ROO_MODES } from '../constants/profiles.js';"
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('Rules Files Inclusion in Package', () => {
|
||||
|
||||
test('roo.js profile contains logic for Roo directory creation and file copying', () => {
|
||||
// Read the roo.js profile file
|
||||
const rooJsPath = path.join(process.cwd(), 'scripts', 'profiles', 'roo.js');
|
||||
const rooJsPath = path.join(process.cwd(), 'src', 'profiles', 'roo.js');
|
||||
const rooJsContent = fs.readFileSync(rooJsPath, 'utf8');
|
||||
|
||||
// Check for the main handler function
|
||||
@@ -77,7 +77,7 @@ describe('Rules Files Inclusion in Package', () => {
|
||||
// Check for import of ROO_MODES from profiles.js
|
||||
expect(
|
||||
rooJsContent.includes(
|
||||
"import { ROO_MODES } from '../../src/constants/profiles.js'"
|
||||
"import { ROO_MODES } from '../constants/profiles.js'"
|
||||
)
|
||||
).toBe(true);
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('Trae Profile Initialization Functionality', () => {
|
||||
beforeAll(() => {
|
||||
const traeJsPath = path.join(
|
||||
process.cwd(),
|
||||
'scripts',
|
||||
'src',
|
||||
'profiles',
|
||||
'trae.js'
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ describe('Windsurf Profile Initialization Functionality', () => {
|
||||
beforeAll(() => {
|
||||
const windsurfJsPath = path.join(
|
||||
process.cwd(),
|
||||
'scripts',
|
||||
'src',
|
||||
'profiles',
|
||||
'windsurf.js'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user