mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-20 19:29:58 +08:00
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:
committed by
Affaan Mustafa
parent
7004a66243
commit
b2c2616ab4
@@ -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(
|
||||
!plan.operations.some(operation => (
|
||||
normalizedRelativePath(operation.sourceRelativePath) === '.cursor'
|
||||
|
||||
Reference in New Issue
Block a user