mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-14 13:53:29 +08:00
test: align cursor manifest expectations
This commit is contained in:
@@ -116,10 +116,19 @@ function runTests() {
|
|||||||
assert.ok(plan.operations.length > 0, 'Should include scaffold operations');
|
assert.ok(plan.operations.length > 0, 'Should include scaffold operations');
|
||||||
assert.ok(
|
assert.ok(
|
||||||
plan.operations.some(operation => (
|
plan.operations.some(operation => (
|
||||||
operation.sourceRelativePath === '.cursor'
|
operation.sourceRelativePath === '.cursor/hooks.json'
|
||||||
&& operation.strategy === 'sync-root-children'
|
&& 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++;
|
})) passed++; else failed++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user