From 990c3e648d124bb6289eb1a05a2a5a91e801e355 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Mon, 20 Apr 2026 09:54:35 -0400 Subject: [PATCH] fix(tests): update 5 source-text tests to read config-schema.cjs (#2480) VALID_CONFIG_KEYS moved from config.cjs to config-schema.cjs in the drift-prevention companion PR. Tests that read config.cjs source text and checked for key literal includes() now point to the correct file. Closes #2480 Co-authored-by: Claude Sonnet 4.6 --- tests/code-review.test.cjs | 2 +- tests/execute-phase-wave.test.cjs | 2 +- tests/inline-plan-threshold.test.cjs | 2 +- tests/plan-bounce.test.cjs | 2 +- tests/thinking-partner.test.cjs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/code-review.test.cjs b/tests/code-review.test.cjs index df2b82536..e33858a8b 100644 --- a/tests/code-review.test.cjs +++ b/tests/code-review.test.cjs @@ -28,7 +28,7 @@ const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs'); const AGENTS_DIR = path.join(__dirname, '..', 'agents'); const COMMANDS_DIR = path.join(__dirname, '..', 'commands', 'gsd'); const WORKFLOWS_DIR = path.join(__dirname, '..', 'get-shit-done', 'workflows'); -const CONFIG_PATH = path.join(__dirname, '..', 'get-shit-done', 'bin', 'lib', 'config.cjs'); +const CONFIG_PATH = path.join(__dirname, '..', 'get-shit-done', 'bin', 'lib', 'config-schema.cjs'); // Plugin directory resolution (cross-platform safe) const PLUGIN_WORKFLOWS_DIR = process.env.GSD_PLUGIN_ROOT || path.join(os.homedir(), '.claude', 'get-shit-done', 'workflows'); diff --git a/tests/execute-phase-wave.test.cjs b/tests/execute-phase-wave.test.cjs index edf2bd974..f653789eb 100644 --- a/tests/execute-phase-wave.test.cjs +++ b/tests/execute-phase-wave.test.cjs @@ -128,7 +128,7 @@ describe('use_worktrees config: cross-workflow structural coverage', () => { const DIAGNOSE_PATH = path.join(__dirname, '..', 'get-shit-done', 'workflows', 'diagnose-issues.md'); const EXECUTE_PLAN_PATH = path.join(__dirname, '..', 'get-shit-done', 'workflows', 'execute-plan.md'); const PLANNING_CONFIG_PATH = path.join(__dirname, '..', 'get-shit-done', 'references', 'planning-config.md'); - const CONFIG_CJS_PATH = path.join(__dirname, '..', 'get-shit-done', 'bin', 'lib', 'config.cjs'); + const CONFIG_CJS_PATH = path.join(__dirname, '..', 'get-shit-done', 'bin', 'lib', 'config-schema.cjs'); test('quick workflow reads USE_WORKTREES from config', () => { const content = fs.readFileSync(QUICK_PATH, 'utf-8'); diff --git a/tests/inline-plan-threshold.test.cjs b/tests/inline-plan-threshold.test.cjs index 01f684c89..a7306707d 100644 --- a/tests/inline-plan-threshold.test.cjs +++ b/tests/inline-plan-threshold.test.cjs @@ -20,7 +20,7 @@ const { runGsdTools, createTempProject, cleanup } = require('./helpers.cjs'); const repoRoot = path.resolve(__dirname, '..'); const executePlanPath = path.join(repoRoot, 'get-shit-done', 'workflows', 'execute-plan.md'); const planningConfigPath = path.join(repoRoot, 'get-shit-done', 'references', 'planning-config.md'); -const configCjsPath = path.join(repoRoot, 'get-shit-done', 'bin', 'lib', 'config.cjs'); +const configCjsPath = path.join(repoRoot, 'get-shit-done', 'bin', 'lib', 'config-schema.cjs'); describe('inline_plan_threshold config key (#1979)', () => { let tmpDir; diff --git a/tests/plan-bounce.test.cjs b/tests/plan-bounce.test.cjs index 10845f62b..d78a43fec 100644 --- a/tests/plan-bounce.test.cjs +++ b/tests/plan-bounce.test.cjs @@ -17,7 +17,7 @@ const fs = require('fs'); const path = require('path'); const GSD_ROOT = path.join(__dirname, '..', 'get-shit-done'); -const CONFIG_CJS_PATH = path.join(GSD_ROOT, 'bin', 'lib', 'config.cjs'); +const CONFIG_CJS_PATH = path.join(GSD_ROOT, 'bin', 'lib', 'config-schema.cjs'); const CONFIG_TEMPLATE_PATH = path.join(GSD_ROOT, 'templates', 'config.json'); const PLAN_PHASE_PATH = path.join(GSD_ROOT, 'workflows', 'plan-phase.md'); diff --git a/tests/thinking-partner.test.cjs b/tests/thinking-partner.test.cjs index 817316f1e..4d3ef47d7 100644 --- a/tests/thinking-partner.test.cjs +++ b/tests/thinking-partner.test.cjs @@ -68,7 +68,7 @@ describe('Thinking Partner Integration (#1726)', () => { describe('Config integration', () => { test('features.thinking_partner is in VALID_CONFIG_KEYS', () => { const configSrc = fs.readFileSync( - path.join(GSD_ROOT, 'bin', 'lib', 'config.cjs'), + path.join(GSD_ROOT, 'bin', 'lib', 'config-schema.cjs'), 'utf-8' ); assert.ok(