diff --git a/tests/claude-md.test.cjs b/tests/claude-md.test.cjs index 8b204f434..7e4bb6d1e 100644 --- a/tests/claude-md.test.cjs +++ b/tests/claude-md.test.cjs @@ -65,18 +65,20 @@ describe('new-project workflow includes CLAUDE.md generation', () => { const workflowPath = path.join(__dirname, '..', 'get-shit-done', 'workflows', 'new-project.md'); const commandsPath = path.join(__dirname, '..', 'docs', 'COMMANDS.md'); - test('new-project workflow generates CLAUDE.md before final commit', () => { + test('new-project workflow generates instruction file before final commit', () => { const content = fs.readFileSync(workflowPath, 'utf-8'); assert.ok(content.includes('generate-claude-md')); - assert.ok(content.includes('--files .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md CLAUDE.md')); + // Codex fix: workflow now uses $INSTRUCTION_FILE (AGENTS.md for Codex, CLAUDE.md otherwise) + assert.ok(content.includes('--files .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md "$INSTRUCTION_FILE"')); }); - test('new-project artifacts mention CLAUDE.md', () => { + test('new-project artifacts reference instruction file variable', () => { const workflowContent = fs.readFileSync(workflowPath, 'utf-8'); const commandsContent = fs.readFileSync(commandsPath, 'utf-8'); - assert.ok(workflowContent.includes('| Project guide | `CLAUDE.md`')); - assert.ok(workflowContent.includes('- `CLAUDE.md`')); + // Codex fix: hardcoded CLAUDE.md replaced with $INSTRUCTION_FILE variable + assert.ok(workflowContent.includes('| Project guide | `$INSTRUCTION_FILE`')); + assert.ok(workflowContent.includes('- `$INSTRUCTION_FILE`')); assert.ok(commandsContent.includes('`CLAUDE.md`')); }); });