test(install-targets): add positive rules assertion to claude-project foreign-path test

Addresses CodeRabbit review: the negative-only assertions could have
passed on an empty plan. Add a positive assertion that the non-foreign
'rules' path is still planned under .claude/rules/ecc so regression to
zero ops would fail loudly.
This commit is contained in:
Mhd Ghaith Al Abtah
2026-05-19 19:50:48 +04:00
committed by Affaan Mustafa
parent 7004a66243
commit b2c2616ab4

View File

@@ -943,6 +943,13 @@ function runTests() {
], ],
}); });
assert.ok(
plan.operations.some(operation => (
normalizedRelativePath(operation.sourceRelativePath) === 'rules'
&& operation.destinationPath === path.join(projectRoot, '.claude', 'rules', 'ecc')
)),
'Should still include non-foreign rules path (guards against empty-plan regression)'
);
assert.ok( assert.ok(
!plan.operations.some(operation => ( !plan.operations.some(operation => (
normalizedRelativePath(operation.sourceRelativePath) === '.cursor' normalizedRelativePath(operation.sourceRelativePath) === '.cursor'