mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
test: align antigravity manifest expectations
This commit is contained in:
@@ -112,14 +112,17 @@ function runTests() {
|
|||||||
);
|
);
|
||||||
})) passed++; else failed++;
|
})) passed++; else failed++;
|
||||||
|
|
||||||
if (test('resolves antigravity profiles by skipping incompatible dependency trees', () => {
|
if (test('resolves antigravity profiles while skipping only unsupported modules', () => {
|
||||||
const projectRoot = '/workspace/app';
|
const projectRoot = '/workspace/app';
|
||||||
const plan = resolveInstallPlan({ profileId: 'core', target: 'antigravity', projectRoot });
|
const plan = resolveInstallPlan({ profileId: 'core', target: 'antigravity', projectRoot });
|
||||||
|
|
||||||
assert.deepStrictEqual(plan.selectedModuleIds, ['rules-core', 'agents-core', 'commands-core']);
|
assert.deepStrictEqual(
|
||||||
|
plan.selectedModuleIds,
|
||||||
|
['rules-core', 'agents-core', 'commands-core', 'platform-configs', 'workflow-quality']
|
||||||
|
);
|
||||||
assert.ok(plan.skippedModuleIds.includes('hooks-runtime'));
|
assert.ok(plan.skippedModuleIds.includes('hooks-runtime'));
|
||||||
assert.ok(plan.skippedModuleIds.includes('platform-configs'));
|
assert.ok(!plan.skippedModuleIds.includes('platform-configs'));
|
||||||
assert.ok(plan.skippedModuleIds.includes('workflow-quality'));
|
assert.ok(!plan.skippedModuleIds.includes('workflow-quality'));
|
||||||
assert.strictEqual(plan.targetAdapterId, 'antigravity-project');
|
assert.strictEqual(plan.targetAdapterId, 'antigravity-project');
|
||||||
assert.strictEqual(plan.targetRoot, path.join(projectRoot, '.agent'));
|
assert.strictEqual(plan.targetRoot, path.join(projectRoot, '.agent'));
|
||||||
})) passed++; else failed++;
|
})) passed++; else failed++;
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ function runTests() {
|
|||||||
}
|
}
|
||||||
})) passed++; else failed++;
|
})) passed++; else failed++;
|
||||||
|
|
||||||
if (test('installs antigravity manifest profiles while skipping incompatible modules', () => {
|
if (test('installs antigravity manifest profiles while skipping only unsupported modules', () => {
|
||||||
const homeDir = createTempDir('install-apply-home-');
|
const homeDir = createTempDir('install-apply-home-');
|
||||||
const projectDir = createTempDir('install-apply-project-');
|
const projectDir = createTempDir('install-apply-project-');
|
||||||
|
|
||||||
@@ -269,14 +269,18 @@ function runTests() {
|
|||||||
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'rules', 'common-coding-style.md')));
|
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'rules', 'common-coding-style.md')));
|
||||||
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'skills', 'architect.md')));
|
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'skills', 'architect.md')));
|
||||||
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'workflows', 'plan.md')));
|
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'workflows', 'plan.md')));
|
||||||
assert.ok(!fs.existsSync(path.join(projectDir, '.agent', 'skills', 'tdd-workflow', 'SKILL.md')));
|
assert.ok(fs.existsSync(path.join(projectDir, '.agent', 'skills', 'tdd-workflow', 'SKILL.md')));
|
||||||
|
|
||||||
const state = readJson(path.join(projectDir, '.agent', 'ecc-install-state.json'));
|
const state = readJson(path.join(projectDir, '.agent', 'ecc-install-state.json'));
|
||||||
assert.strictEqual(state.request.profile, 'core');
|
assert.strictEqual(state.request.profile, 'core');
|
||||||
assert.strictEqual(state.request.legacyMode, false);
|
assert.strictEqual(state.request.legacyMode, false);
|
||||||
assert.deepStrictEqual(state.resolution.selectedModules, ['rules-core', 'agents-core', 'commands-core']);
|
assert.deepStrictEqual(
|
||||||
assert.ok(state.resolution.skippedModules.includes('workflow-quality'));
|
state.resolution.selectedModules,
|
||||||
assert.ok(state.resolution.skippedModules.includes('platform-configs'));
|
['rules-core', 'agents-core', 'commands-core', 'platform-configs', 'workflow-quality']
|
||||||
|
);
|
||||||
|
assert.ok(state.resolution.skippedModules.includes('hooks-runtime'));
|
||||||
|
assert.ok(!state.resolution.skippedModules.includes('workflow-quality'));
|
||||||
|
assert.ok(!state.resolution.skippedModules.includes('platform-configs'));
|
||||||
} finally {
|
} finally {
|
||||||
cleanup(homeDir);
|
cleanup(homeDir);
|
||||||
cleanup(projectDir);
|
cleanup(projectDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user