From 11d5c0a4bdfd07767a4c257451149a0375c7cfe6 Mon Sep 17 00:00:00 2001 From: Tibsfox Date: Thu, 2 Apr 2026 05:49:24 -0700 Subject: [PATCH] fix(test): create commands/gsd/ dir before writing dev-preferences in test Since #1540 migrated Claude Code to skills/ format, the installer may not create commands/gsd/ anymore. The test needs to ensure the directory exists before writing the user file into it. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/copilot-install.test.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/copilot-install.test.cjs b/tests/copilot-install.test.cjs index c80ddff53..690d59a23 100644 --- a/tests/copilot-install.test.cjs +++ b/tests/copilot-install.test.cjs @@ -1390,7 +1390,9 @@ describe('Claude uninstall preserves user-generated files (#1423)', () => { }); test('preserves dev-preferences.md across uninstall', () => { - const prefsPath = path.join(tmpDir, '.claude', 'commands', 'gsd', 'dev-preferences.md'); + const prefsDir = path.join(tmpDir, '.claude', 'commands', 'gsd'); + fs.mkdirSync(prefsDir, { recursive: true }); + const prefsPath = path.join(prefsDir, 'dev-preferences.md'); const content = '---\nname: dev-preferences\n---\n# Preferences\nUse TypeScript strict.\n'; fs.writeFileSync(prefsPath, content);