From 67306c22cd03c1e46c1453ca6a2f0622081cd233 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Tue, 24 Mar 2026 03:50:46 -0700 Subject: [PATCH] test: align antigravity manifest expectations --- tests/lib/install-manifests.test.js | 11 +++++++---- tests/scripts/install-apply.test.js | 14 +++++++++----- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/tests/lib/install-manifests.test.js b/tests/lib/install-manifests.test.js index 7e6c743a..72a488ae 100644 --- a/tests/lib/install-manifests.test.js +++ b/tests/lib/install-manifests.test.js @@ -112,14 +112,17 @@ function runTests() { ); })) 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 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('platform-configs')); - assert.ok(plan.skippedModuleIds.includes('workflow-quality')); + assert.ok(!plan.skippedModuleIds.includes('platform-configs')); + assert.ok(!plan.skippedModuleIds.includes('workflow-quality')); assert.strictEqual(plan.targetAdapterId, 'antigravity-project'); assert.strictEqual(plan.targetRoot, path.join(projectRoot, '.agent')); })) passed++; else failed++; diff --git a/tests/scripts/install-apply.test.js b/tests/scripts/install-apply.test.js index 257a29ff..6bf3f223 100644 --- a/tests/scripts/install-apply.test.js +++ b/tests/scripts/install-apply.test.js @@ -258,7 +258,7 @@ function runTests() { } })) 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 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', 'skills', 'architect.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')); assert.strictEqual(state.request.profile, 'core'); assert.strictEqual(state.request.legacyMode, false); - assert.deepStrictEqual(state.resolution.selectedModules, ['rules-core', 'agents-core', 'commands-core']); - assert.ok(state.resolution.skippedModules.includes('workflow-quality')); - assert.ok(state.resolution.skippedModules.includes('platform-configs')); + assert.deepStrictEqual( + state.resolution.selectedModules, + ['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 { cleanup(homeDir); cleanup(projectDir);