Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

test: align cursor manifest expectations

Affaan Mustafa30f6ae4253f6
diff --git a/tests/lib/install-manifests.test.js b/tests/lib/install-manifests.test.js
index a7cbba79e..faa072445 100644
--- a/tests/lib/install-manifests.test.js
+++ b/tests/lib/install-manifests.test.js
@@ -116,10 +116,19 @@ function runTests() {
assert.ok(plan.operations.length > 0, 'Should include scaffold operations');
assert.ok(
plan.operations.some(operation => (
- operation.sourceRelativePath === '.cursor'
- && operation.strategy === 'sync-root-children'
+ operation.sourceRelativePath === '.cursor/hooks.json'
+ && operation.destinationPath === path.join(projectRoot, '.cursor', 'hooks.json')
+ && operation.strategy === 'preserve-relative-path'
)),
- 'Should flatten the native cursor root'
+ 'Should preserve non-rule Cursor platform files'
+ );
+ assert.ok(
+ plan.operations.some(operation => (
+ operation.sourceRelativePath === '.cursor/rules/common-agents.md'
+ && operation.destinationPath === path.join(projectRoot, '.cursor', 'rules', 'common-agents.mdc')
+ && operation.strategy === 'flatten-copy'
+ )),
+ 'Should flatten Cursor platform rules into .mdc files'
);
})) passed++; else failed++;