fix(tests): redirect implementation tests to workflow files after extraction
After extracting debug.md and thread.md implementations to workflow files and renaming extract_learnings.md, existing tests still referenced the old locations: - debug-session-management.test.cjs: commands/gsd/debug.md → workflows/debug.md - thread-session-management.test.cjs: commands/gsd/thread.md → workflows/thread.md - extract-learnings.test.cjs: extract_learnings.md → extract-learnings.md - enh-2430-learnings-consumption.test.cjs: extract_learnings.md → extract-learnings.md Also adds <available_agent_types> block and TEXT_MODE fallback note to get-shit-done/workflows/debug.md to satisfy the spawn-type-consistency (#1357) and AskUserQuestion text-mode fallback (#2012) contract tests that scan all workflow files.
This commit is contained in:
@@ -17,7 +17,7 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const COMMAND_PATH = path.join(__dirname, '..', 'commands', 'gsd', 'extract-learnings.md');
|
||||
const WORKFLOW_PATH = path.join(__dirname, '..', 'get-shit-done', 'workflows', 'extract_learnings.md');
|
||||
const WORKFLOW_PATH = path.join(__dirname, '..', 'get-shit-done', 'workflows', 'extract-learnings.md');
|
||||
|
||||
describe('extract-learnings command', () => {
|
||||
test('command file exists', () => {
|
||||
@@ -59,15 +59,15 @@ describe('extract-learnings command', () => {
|
||||
test('command references the workflow via execution_context', () => {
|
||||
const content = fs.readFileSync(COMMAND_PATH, 'utf-8');
|
||||
assert.ok(
|
||||
content.includes('workflows/extract_learnings.md'),
|
||||
'Command must reference workflows/extract_learnings.md in execution_context'
|
||||
content.includes('workflows/extract-learnings.md'),
|
||||
'Command must reference workflows/extract-learnings.md in execution_context'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('extract-learnings workflow', () => {
|
||||
test('workflow file exists', () => {
|
||||
assert.ok(fs.existsSync(WORKFLOW_PATH), 'workflows/extract_learnings.md should exist');
|
||||
assert.ok(fs.existsSync(WORKFLOW_PATH), 'workflows/extract-learnings.md should exist');
|
||||
});
|
||||
|
||||
test('workflow has objective tag', () => {
|
||||
|
||||
Reference in New Issue
Block a user